@everymatrix/casino-lobby 1.45.0 → 1.45.3

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,220 @@
1
+ import { $ as R, a as P, S as q, i as A, f, c as O, s as U, b as G, e as c, q as L, r as T, u as l, D as E, G as v, d as V, v as o, w as W, A as S, C as j, j as J, o as K, l as N, m as H } from "./CasinoCalendar-3HRZGpnG.js";
2
+ function Q({ withLocale: i, translations: e }) {
3
+ R.subscribe((a) => {
4
+ a == null && (P.set(e), R.set(i));
5
+ });
6
+ }
7
+ function X(i) {
8
+ G(i, "svelte-5rmvn0", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}');
9
+ }
10
+ function Y(i) {
11
+ let e, a, y, u, b, k, n, h, d, x, m, p, g, I, F, D, C, w, B, _, z, M, t;
12
+ return {
13
+ c() {
14
+ e = c("div"), a = c("div"), y = c("div"), u = c("div"), b = c("div"), b.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', k = L(), n = c("div"), h = c("div"), d = c("img"), m = L(), p = c("div"), g = T(
15
+ /*dailyday*/
16
+ i[2]
17
+ ), I = L(), F = c("div"), D = L(), C = c("div"), w = c("button"), B = T(
18
+ /*dailybuttontitle*/
19
+ i[3]
20
+ ), l(b, "class", "CalendarBar"), E(d.src, x = /*dailyicon*/
21
+ i[1]) || l(d, "src", x), l(
22
+ d,
23
+ "alt",
24
+ /*dailyicon*/
25
+ i[1]
26
+ ), l(h, "class", "CasinoCalendarDailyIcon"), l(p, "class", "CasinoCalendarDailyTitle"), l(F, "class", "CasinoCalendarDailyItemDescription"), l(w, "class", "MoreInfoButton"), l(C, "class", "CasinoCalendarDailyItemButton"), l(n, "class", _ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
27
+ i[4] == "OpenCalendarModal" ? "Tear" : "")), v(n, "background-image", "url('" + /*dailybackground*/
28
+ i[0] + "')"), v(n, "background-size", "cover"), v(n, "background-position", "center"), v(n, "-webkit-background-size", "cover"), v(n, "-moz-background-size", "cover"), v(n, "-o-background-size", "cover"), l(u, "class", "CalendarCard"), l(y, "class", "CasinoCalendarItems"), l(a, "class", z = "Container " + /*mobileView*/
29
+ (i[7] ? "Mobile" : ""));
30
+ },
31
+ m(r, s) {
32
+ V(r, e, s), o(e, a), o(a, y), o(y, u), o(u, b), o(u, k), o(u, n), o(n, h), o(h, d), o(n, m), o(n, p), o(p, g), o(n, I), o(n, F), i[13](F), o(n, D), o(n, C), o(C, w), o(w, B), i[15](e), M || (t = W(
33
+ w,
34
+ "click",
35
+ /*click_handler*/
36
+ i[14]
37
+ ), M = !0);
38
+ },
39
+ p(r, [s]) {
40
+ s & /*dailyicon*/
41
+ 2 && !E(d.src, x = /*dailyicon*/
42
+ r[1]) && l(d, "src", x), s & /*dailyicon*/
43
+ 2 && l(
44
+ d,
45
+ "alt",
46
+ /*dailyicon*/
47
+ r[1]
48
+ ), s & /*dailyday*/
49
+ 4 && S(
50
+ g,
51
+ /*dailyday*/
52
+ r[2]
53
+ ), s & /*dailybuttontitle*/
54
+ 8 && S(
55
+ B,
56
+ /*dailybuttontitle*/
57
+ r[3]
58
+ ), s & /*index*/
59
+ 16 && _ !== (_ = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
60
+ r[4] == "OpenCalendarModal" ? "Tear" : "")) && l(n, "class", _), s & /*dailybackground*/
61
+ 1 && v(n, "background-image", "url('" + /*dailybackground*/
62
+ r[0] + "')"), s & /*mobileView*/
63
+ 128 && z !== (z = "Container " + /*mobileView*/
64
+ (r[7] ? "Mobile" : "")) && l(a, "class", z);
65
+ },
66
+ i: j,
67
+ o: j,
68
+ d(r) {
69
+ r && J(e), i[13](null), i[15](null), M = !1, t();
70
+ }
71
+ };
72
+ }
73
+ function Z(i, e, a) {
74
+ let { lang: y = "" } = e, { dailybackground: u = "" } = e, { dailyicon: b = "" } = e, { dailyday: k = "" } = e, { dailydescription: n = "<p></p>" } = e, { dailybuttontitle: h = "" } = e, { index: d = "0" } = e, { clientstyling: x = "" } = e, { clientstylingurl: m = "" } = e;
75
+ Q({ withLocale: "en", translations: {} });
76
+ let p, g, I = !1, F = window.navigator.userAgent;
77
+ const D = () => {
78
+ let t = document.createElement("div");
79
+ t.innerHTML = n, p && p.append(t);
80
+ }, C = () => {
81
+ window.postMessage({ type: "OpenCalendar", index: d }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
82
+ }, w = () => {
83
+ let t = document.createElement("style");
84
+ t.innerHTML = x, g.appendChild(t);
85
+ }, B = () => {
86
+ let t = new URL(m), r = document.createElement("style");
87
+ fetch(t.href).then((s) => s.text()).then((s) => {
88
+ r.innerHTML = s, setTimeout(
89
+ () => {
90
+ g.appendChild(r);
91
+ },
92
+ 1
93
+ ), setTimeout(
94
+ () => {
95
+ },
96
+ 500
97
+ );
98
+ });
99
+ };
100
+ K(() => {
101
+ N(F) && a(7, I = !0);
102
+ });
103
+ function _(t) {
104
+ H[t ? "unshift" : "push"](() => {
105
+ p = t, a(6, p);
106
+ });
107
+ }
108
+ const z = () => C();
109
+ function M(t) {
110
+ H[t ? "unshift" : "push"](() => {
111
+ g = t, a(5, g);
112
+ });
113
+ }
114
+ return i.$$set = (t) => {
115
+ "lang" in t && a(9, y = t.lang), "dailybackground" in t && a(0, u = t.dailybackground), "dailyicon" in t && a(1, b = t.dailyicon), "dailyday" in t && a(2, k = t.dailyday), "dailydescription" in t && a(10, n = t.dailydescription), "dailybuttontitle" in t && a(3, h = t.dailybuttontitle), "index" in t && a(4, d = t.index), "clientstyling" in t && a(11, x = t.clientstyling), "clientstylingurl" in t && a(12, m = t.clientstylingurl);
116
+ }, i.$$.update = () => {
117
+ i.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
118
+ 1039 && b && k && n && h && u && D(), i.$$.dirty & /*clientstyling, customStylingContainer*/
119
+ 2080 && x && g && w(), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
120
+ 4128 && m && g && B();
121
+ }, [
122
+ u,
123
+ b,
124
+ k,
125
+ h,
126
+ d,
127
+ g,
128
+ p,
129
+ I,
130
+ C,
131
+ y,
132
+ n,
133
+ x,
134
+ m,
135
+ _,
136
+ z,
137
+ M
138
+ ];
139
+ }
140
+ class $ extends q {
141
+ constructor(e) {
142
+ super(), A(
143
+ this,
144
+ e,
145
+ Z,
146
+ Y,
147
+ U,
148
+ {
149
+ lang: 9,
150
+ dailybackground: 0,
151
+ dailyicon: 1,
152
+ dailyday: 2,
153
+ dailydescription: 10,
154
+ dailybuttontitle: 3,
155
+ index: 4,
156
+ clientstyling: 11,
157
+ clientstylingurl: 12
158
+ },
159
+ X
160
+ );
161
+ }
162
+ get lang() {
163
+ return this.$$.ctx[9];
164
+ }
165
+ set lang(e) {
166
+ this.$$set({ lang: e }), f();
167
+ }
168
+ get dailybackground() {
169
+ return this.$$.ctx[0];
170
+ }
171
+ set dailybackground(e) {
172
+ this.$$set({ dailybackground: e }), f();
173
+ }
174
+ get dailyicon() {
175
+ return this.$$.ctx[1];
176
+ }
177
+ set dailyicon(e) {
178
+ this.$$set({ dailyicon: e }), f();
179
+ }
180
+ get dailyday() {
181
+ return this.$$.ctx[2];
182
+ }
183
+ set dailyday(e) {
184
+ this.$$set({ dailyday: e }), f();
185
+ }
186
+ get dailydescription() {
187
+ return this.$$.ctx[10];
188
+ }
189
+ set dailydescription(e) {
190
+ this.$$set({ dailydescription: e }), f();
191
+ }
192
+ get dailybuttontitle() {
193
+ return this.$$.ctx[3];
194
+ }
195
+ set dailybuttontitle(e) {
196
+ this.$$set({ dailybuttontitle: e }), f();
197
+ }
198
+ get index() {
199
+ return this.$$.ctx[4];
200
+ }
201
+ set index(e) {
202
+ this.$$set({ index: e }), f();
203
+ }
204
+ get clientstyling() {
205
+ return this.$$.ctx[11];
206
+ }
207
+ set clientstyling(e) {
208
+ this.$$set({ clientstyling: e }), f();
209
+ }
210
+ get clientstylingurl() {
211
+ return this.$$.ctx[12];
212
+ }
213
+ set clientstylingurl(e) {
214
+ this.$$set({ clientstylingurl: e }), f();
215
+ }
216
+ }
217
+ O($, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
218
+ export {
219
+ $ as default
220
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function B({withLocale:n,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(n))})}function M(n){e.append_styles(n,"svelte-5rmvn0",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container::-webkit-scrollbar{display:none}.CalendarBar{width:100%;height:28px;background:rgba(156, 163, 175, 0.25);border-radius:4px 4px 0 0;border-bottom:3px solid rgba(156, 163, 175, 0.5);display:block;z-index:2}.CalendarBar::before{content:"";position:absolute;z-index:-1}.RingLeft::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;left:22px;position:absolute;z-index:1}.RingLeft::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px var(--emfe-w-color-white, #FFFFFF);top:6px;right:20px;position:absolute;z-index:0}.RingRight::before{content:"";width:8px;height:24px;border-radius:20px;background:linear-gradient(#fff, #ccc);box-shadow:inset 0 -4px 6px rgba(0, 0, 0, 0.5);top:-8px;right:22px;position:absolute;z-index:1}.RingRight::after{content:"";float:left;top:15px;width:12px;height:12px;background:#111;border-radius:10px;box-shadow:0 1px 1px #fff;top:6px;left:20px;position:absolute;z-index:0}.CalendarPage{width:100%;min-width:170px;height:170px;padding:8px 8px 30px 8px;text-align:center;border-radius:0 0 2px 2px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;z-index:0}.CalendarPage.Tear{animation:tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes tearoff{0%{top:0}40%{transform:rotate(4deg);top:10px;opacity:1}65%{opacity:1}90%{transform:rotate(4deg);top:20px;opacity:0}95%{transform:rotate(0deg);top:0px;opacity:0}100%{transform:rotate(0deg);top:0px;opacity:1}}.CalendarCard{margin:16px 0 12px;width:170px;height:240px;text-align:center;border-radius:5px;color:var(--emfe-w-color-white, #FFFFFF);position:relative;display:block}.CasinoCalendarItems{width:100%}.CasinoCalendarItemBackground{display:flex;justify-content:flex-start;flex-direction:column;align-items:center;color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-color-gray-300, #58586B);background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-position:center;background-size:cover;background-blend-mode:multiply;height:100%;width:100%;border-radius:0 0 5px 5px}.CasinoCalendarDailyIcon{height:20px;margin:15px}.CasinoCalendarDailyIcon img{max-height:28px}.CasinoCalendarDailyTitle{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton{width:100%;text-align:center}.MoreInfoButton{display:flex;justify-content:center;width:100%;padding:8px 6px;border-radius:5px;border:none;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-color-contrast, #000000) 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, var(--emw--casino-thumbnail-animation-color, #FFFFFF) 30%));color:var(--emw--button-typography, #FFFFFF);font-size:var(--emw--font-size-small, 14px);border:2px solid var(--emw--button-border-color, #073B17);border-radius:var(--emw--border-radius-large, 20px);cursor:pointer;transition:border 150ms ease-in-out}')}function D(n){let t,l,h,c,g,m,a,f,d,p,b,u,s,k,C,z,x,y,F,w,v,_,i;return{c(){t=e.element("div"),l=e.element("div"),h=e.element("div"),c=e.element("div"),g=e.element("div"),g.innerHTML='<div class="RingLeft"></div> <div class="RingRight"></div>',m=e.space(),a=e.element("div"),f=e.element("div"),d=e.element("img"),b=e.space(),u=e.element("div"),s=e.text(n[2]),k=e.space(),C=e.element("div"),z=e.space(),x=e.element("div"),y=e.element("button"),F=e.text(n[3]),e.attr(g,"class","CalendarBar"),e.src_url_equal(d.src,p=n[1])||e.attr(d,"src",p),e.attr(d,"alt",n[1]),e.attr(f,"class","CasinoCalendarDailyIcon"),e.attr(u,"class","CasinoCalendarDailyTitle"),e.attr(C,"class","CasinoCalendarDailyItemDescription"),e.attr(y,"class","MoreInfoButton"),e.attr(x,"class","CasinoCalendarDailyItemButton"),e.attr(a,"class",w="CasinoCalendarItemBackground CalendarPage "+(n[4]=="OpenCalendarModal"?"Tear":"")),e.set_style(a,"background-image","url('"+n[0]+"')"),e.set_style(a,"background-size","cover"),e.set_style(a,"background-position","center"),e.set_style(a,"-webkit-background-size","cover"),e.set_style(a,"-moz-background-size","cover"),e.set_style(a,"-o-background-size","cover"),e.attr(c,"class","CalendarCard"),e.attr(h,"class","CasinoCalendarItems"),e.attr(l,"class",v="Container "+(n[7]?"Mobile":""))},m(o,r){e.insert(o,t,r),e.append(t,l),e.append(l,h),e.append(h,c),e.append(c,g),e.append(c,m),e.append(c,a),e.append(a,f),e.append(f,d),e.append(a,b),e.append(a,u),e.append(u,s),e.append(a,k),e.append(a,C),n[13](C),e.append(a,z),e.append(a,x),e.append(x,y),e.append(y,F),n[15](t),_||(i=e.listen(y,"click",n[14]),_=!0)},p(o,[r]){r&2&&!e.src_url_equal(d.src,p=o[1])&&e.attr(d,"src",p),r&2&&e.attr(d,"alt",o[1]),r&4&&e.set_data(s,o[2]),r&8&&e.set_data(F,o[3]),r&16&&w!==(w="CasinoCalendarItemBackground CalendarPage "+(o[4]=="OpenCalendarModal"?"Tear":""))&&e.attr(a,"class",w),r&1&&e.set_style(a,"background-image","url('"+o[0]+"')"),r&128&&v!==(v="Container "+(o[7]?"Mobile":""))&&e.attr(l,"class",v)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n[13](null),n[15](null),_=!1,i()}}}function L(n,t,l){let{lang:h=""}=t,{dailybackground:c=""}=t,{dailyicon:g=""}=t,{dailyday:m=""}=t,{dailydescription:a="<p></p>"}=t,{dailybuttontitle:f=""}=t,{index:d="0"}=t,{clientstyling:p=""}=t,{clientstylingurl:b=""}=t;B({withLocale:"en",translations:{}});let u,s,k=!1,C=window.navigator.userAgent;const z=()=>{let i=document.createElement("div");i.innerHTML=a,u&&u.append(i)},x=()=>{window.postMessage({type:"OpenCalendar",index:d},window.location.href),typeof gtag=="function"&&gtag("event","MoreInfo",{context:"CalendarWidgetItem"})},y=()=>{let i=document.createElement("style");i.innerHTML=p,s.appendChild(i)},F=()=>{let i=new URL(b),o=document.createElement("style");fetch(i.href).then(r=>r.text()).then(r=>{o.innerHTML=r,setTimeout(()=>{s.appendChild(o)},1),setTimeout(()=>{},500)})};e.onMount(()=>{e.isMobile(C)&&l(7,k=!0)});function w(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,l(6,u)})}const v=()=>x();function _(i){e.binding_callbacks[i?"unshift":"push"](()=>{s=i,l(5,s)})}return n.$$set=i=>{"lang"in i&&l(9,h=i.lang),"dailybackground"in i&&l(0,c=i.dailybackground),"dailyicon"in i&&l(1,g=i.dailyicon),"dailyday"in i&&l(2,m=i.dailyday),"dailydescription"in i&&l(10,a=i.dailydescription),"dailybuttontitle"in i&&l(3,f=i.dailybuttontitle),"index"in i&&l(4,d=i.index),"clientstyling"in i&&l(11,p=i.clientstyling),"clientstylingurl"in i&&l(12,b=i.clientstylingurl)},n.$$.update=()=>{n.$$.dirty&1039&&g&&m&&a&&f&&c&&z(),n.$$.dirty&2080&&p&&s&&y(),n.$$.dirty&4128&&b&&s&&F()},[c,g,m,f,d,s,u,k,x,h,a,p,b,w,v,_]}class I extends e.SvelteComponent{constructor(t){super(),e.init(this,t,L,D,e.safe_not_equal,{lang:9,dailybackground:0,dailyicon:1,dailyday:2,dailydescription:10,dailybuttontitle:3,index:4,clientstyling:11,clientstylingurl:12},M)}get lang(){return this.$$.ctx[9]}set lang(t){this.$$set({lang:t}),e.flush()}get dailybackground(){return this.$$.ctx[0]}set dailybackground(t){this.$$set({dailybackground:t}),e.flush()}get dailyicon(){return this.$$.ctx[1]}set dailyicon(t){this.$$set({dailyicon:t}),e.flush()}get dailyday(){return this.$$.ctx[2]}set dailyday(t){this.$$set({dailyday:t}),e.flush()}get dailydescription(){return this.$$.ctx[10]}set dailydescription(t){this.$$set({dailydescription:t}),e.flush()}get dailybuttontitle(){return this.$$.ctx[3]}set dailybuttontitle(t){this.$$set({dailybuttontitle:t}),e.flush()}get index(){return this.$$.ctx[4]}set index(t){this.$$set({index:t}),e.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(I,{lang:{},dailybackground:{},dailyicon:{},dailyday:{},dailydescription:{},dailybuttontitle:{},index:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=I;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-egUFg4eK.cjs");function H(n,e){t.addMessages(n,e)}const Y={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-CjA8vWoz.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(n){t.append_styles(n,"svelte-1ydghqy",".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}")}function ae(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",z),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-1ydghqy"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ne(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ie(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;function s(i,o){return i[12]||le||re?ie:i[14]?ne:ae}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let z="CasinoSliderData",le=!1,re=!1;function ce(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:S=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:E=""}=e,{sessioncheck:j=""}=e,{location:P="secondaryMenu"}=e,{showsubgroups:T="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:q=""}=e,{lobbyiconimage:F=""}=e,{mygamesiconimage:A=""}=e,D,O,g=!0,d,h=[],y=!1,J=window.navigator.userAgent,f,R,U=!1,G=!1;const K=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{H(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(Y).forEach(a=>{H(a,Y[a])});const Q=()=>{U==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:D,href:"",games:[]}),t.tick(),U=!0,s(25,G=!0),I()},V=()=>(r||(d="Endpoint is missing! Please provide a valid endpointURL.",s(14,y=!0),s(12,g=!1),console.error(d)),i||(d="Datasource is missing! Please provide a valid datasource.",s(14,y=!0),s(12,g=!1),console.error(d)),(!o||o.length<2)&&(d="Language is missing! Please provide a valid language (alpha2code)",s(14,y=!0),s(12,g=!1),console.error(d)),y),W=()=>{if(D=l("myGamesName"),O=l("lobbyName"),!V()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(J)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),ee=c.items.filter(B=>{let k=!1;if(B.games.total>0&&(k=!0,M))for(let te of m)B.flags==te&&(k=!1);return k});h=[],h=h.concat(ee),h.unshift({id:"LOBBY",name:O,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)})}},X=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Z=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},p=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},I=()=>{window.postMessage({type:"SliderData",identity:z,data:h},window.location.href)};function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,S=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,N=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,E=a.actionevent),"sessioncheck"in a&&s(22,j=a.sessioncheck),"location"in a&&s(7,P=a.location),"showsubgroups"in a&&s(8,T=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,q=a.categoriesicon),"lobbyiconimage"in a&&s(10,F=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,A=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&W(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&Q(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&X(),n.$$.dirty[0]&8208&&L&&f&&Z(),n.$$.dirty[0]&16777216&&v&&K(),n.$$.dirty[0]&8224&&C&&f&&p()},s(15,R=0),[u,r,i,o,L,C,E,P,T,q,F,A,g,f,y,R,I,S,b,_,N,w,j,M,v,G,$]}class x extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[22]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(x,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-9cVNHt1-.cjs");function H(n,e){t.addMessages(n,e)}const Y={en:{lobbyName:"Lobby",myGamesName:"My games"},de:{lobbyName:"Lobby",myGamesName:"My games"},es:{lobbyName:"Sala",myGamesName:"Mis juegos"},"zh-hk":{lobbyName:"Lobby",myGamesName:"My games"},it:{lobbyName:"Lobby",myGamesName:"My games"},fr:{lobbyName:"Lobby",myGamesName:"My games"},tr:{lobbyName:"Lobi",myGamesName:"Oyunlarım"},ru:{lobbyName:"Lobby",myGamesName:"My games"},ro:{lobbyName:"Lobby",myGamesName:"My games"},hr:{lobbyName:"Moj casino",myGamesName:"Moje igre"},hu:{lobbyName:"Lobby",myGamesName:"My games"},pl:{lobbyName:"Lobby",myGamesName:"My games"},pt:{lobbyName:"Lobby",myGamesName:"My games"},sl:{lobbyName:"Lobby",myGamesName:"My games"},sr:{lobbyName:"Lobby",myGamesName:"My games"},"pt-br":{lobbyName:"Lobby",myGamesName:"Meus jogos"},"es-mx":{lobbyName:"Lobby",myGamesName:"Mis juegos"}};if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(l){if(l instanceof DOMException&&l.message.includes("has already been used with this registry")||l.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw l}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-kzZxK81G.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function se(n){t.append_styles(n,"svelte-1ydghqy",".CasinoCategoriesLoading.svelte-1ydghqy{height:52px}p.svelte-1ydghqy{color:var( --emfe-w-categories-typography, var(--emfe-w-color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-1ydghqy{background:var( --emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C))}")}function ae(n){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",n[3]),t.set_custom_element_data(s,"datasource",n[2]),t.set_custom_element_data(s,"endpoint",n[1]),t.set_custom_element_data(s,"identity",z),t.set_custom_element_data(s,"favoritesnumber",n[15]),t.set_custom_element_data(s,"showsubgroups",n[8]),t.set_custom_element_data(s,"clientstyling",n[4]),t.set_custom_element_data(s,"clientstylingurl",n[5]),t.set_custom_element_data(s,"activeindex",n[0]),t.set_custom_element_data(s,"actionevent",n[6]),t.set_custom_element_data(s,"location",n[7]),t.set_custom_element_data(s,"categoriesicon",n[9]),t.set_custom_element_data(s,"lobbyiconimage",n[10]),t.set_custom_element_data(s,"mygamesiconimage",n[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-1ydghqy"),t.attr(e,"part","CasinoCategoriesContainer")},m(i,o){t.insert(i,e,o),t.append(e,s),l||(r=t.action_destroyer(n[16].call(null,s)),l=!0)},p(i,o){o[0]&8&&t.set_custom_element_data(s,"lang",i[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",i[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",i[1]),o[0]&32768&&t.set_custom_element_data(s,"favoritesnumber",i[15]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",i[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",i[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",i[5]),o[0]&1&&t.set_custom_element_data(s,"activeindex",i[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",i[6]),o[0]&128&&t.set_custom_element_data(s,"location",i[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",i[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",i[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",i[11])},d(i){i&&t.detach(e),l=!1,r()}}}function ne(n){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function ie(n){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-1ydghqy")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(n){let e;function s(i,o){return i[12]||le||re?ie:i[14]?ne:ae}let l=s(n),r=l(n);return{c(){e=t.element("div"),r.c()},m(i,o){t.insert(i,e,o),r.m(e,null),n[26](e)},p(i,o){l===(l=s(i))&&r?r.p(i,o):(r.d(1),r=l(i),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(i){i&&t.detach(e),r.d(),n[26](null)}}}let z="CasinoSliderData",le=!1,re=!1;function ce(n,e,s){let l;t.component_subscribe(n,t.$format,a=>s(32,l=a));let{endpoint:r=""}=e,{datasource:i=""}=e,{lang:o=""}=e,{userid:S=""}=e,{session:b=""}=e,{mostplayed:_=""}=e,{lastplayed:N="false"}=e,{favorites:w=""}=e,{clientstyling:L=""}=e,{clientstylingurl:C=""}=e,{activecategory:u=""}=e,{actionevent:E=""}=e,{sessioncheck:j=""}=e,{location:P="secondaryMenu"}=e,{showsubgroups:T="false"}=e,{filteredcategories:M=""}=e,{translationurl:v=""}=e,{categoriesicon:q=""}=e,{lobbyiconimage:F=""}=e,{mygamesiconimage:A=""}=e,D,O,g=!0,d,h=[],y=!1,J=window.navigator.userAgent,f,R,U=!1,G=!1;const K=()=>{fetch(v).then(c=>c.json()).then(c=>{Object.keys(c).forEach(m=>{H(m,c[m])})}).catch(c=>{console.log(c)})};Object.keys(Y).forEach(a=>{H(a,Y[a])});const Q=()=>{U==!1&&(w=="true"||_=="true"||N=="true")&&h.splice(1,0,{id:"MYGAMES",name:D,href:"",games:[]}),t.tick(),U=!0,s(25,G=!0),I()},V=()=>(r||(d="Endpoint is missing! Please provide a valid endpointURL.",s(14,y=!0),s(12,g=!1),console.error(d)),i||(d="Datasource is missing! Please provide a valid datasource.",s(14,y=!0),s(12,g=!1),console.error(d)),(!o||o.length<2)&&(d="Language is missing! Please provide a valid language (alpha2code)",s(14,y=!0),s(12,g=!1),console.error(d)),y),W=()=>{if(D=l("myGamesName"),O=l("lobbyName"),!V()){let a=new URL(`${r}/v1/casino/groups/${i}`);a.searchParams.append("datasource",i),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(J)),fetch(a).then(c=>c.json()).then(c=>{let m=M.split(","),ee=c.items.filter(B=>{let k=!1;if(B.games.total>0&&(k=!0,M))for(let te of m)B.flags==te&&(k=!1);return k});h=[],h=h.concat(ee),h.unshift({id:"LOBBY",name:O,href:"",games:[]}),s(12,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(14,y=!0),console.error("There was an error while fetching the categories",c)})}},X=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},Z=()=>{let a=document.createElement("style");a.innerHTML=L,f.appendChild(a)},p=()=>{let a=document.createElement("style"),c=new URL(C);fetch(c.href).then(m=>m.text()).then(m=>{a.innerHTML=m,setTimeout(()=>{f.appendChild(a)},1)})},I=()=>{window.postMessage({type:"SliderData",identity:z,data:h},window.location.href)};function $(a){t.binding_callbacks[a?"unshift":"push"](()=>{f=a,s(13,f)})}return n.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,i=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(17,S=a.userid),"session"in a&&s(18,b=a.session),"mostplayed"in a&&s(19,_=a.mostplayed),"lastplayed"in a&&s(20,N=a.lastplayed),"favorites"in a&&s(21,w=a.favorites),"clientstyling"in a&&s(4,L=a.clientstyling),"clientstylingurl"in a&&s(5,C=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,E=a.actionevent),"sessioncheck"in a&&s(22,j=a.sessioncheck),"location"in a&&s(7,P=a.location),"showsubgroups"in a&&s(8,T=a.showsubgroups),"filteredcategories"in a&&s(23,M=a.filteredcategories),"translationurl"in a&&s(24,v=a.translationurl),"categoriesicon"in a&&s(9,q=a.categoriesicon),"lobbyiconimage"in a&&s(10,F=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,A=a.mygamesiconimage)},n.$$.update=()=>{n.$$.dirty[0]&14&&r&&i&&o&&W(),n.$$.dirty[0]&3936258&&r&&b&&(_||N||w)&&!g&&Q(),n.$$.dirty[0]&33820673&&!g&&u&&(!b||G)&&X(),n.$$.dirty[0]&8208&&L&&f&&Z(),n.$$.dirty[0]&16777216&&v&&K(),n.$$.dirty[0]&8224&&C&&f&&p()},s(15,R=0),[u,r,i,o,L,C,E,P,T,q,F,A,g,f,y,R,I,S,b,_,N,w,j,M,v,G,$]}class x extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ce,oe,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:17,session:18,mostplayed:19,lastplayed:20,favorites:21,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:22,location:7,showsubgroups:8,filteredcategories:23,translationurl:24,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11},se,[-1,-1])}get endpoint(){return this.$$.ctx[1]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[2]}set datasource(e){this.$$set({datasource:e}),t.flush()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),t.flush()}get userid(){return this.$$.ctx[17]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[18]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[19]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[20]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[21]}set favorites(e){this.$$set({favorites:e}),t.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),t.flush()}get actionevent(){return this.$$.ctx[6]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get sessioncheck(){return this.$$.ctx[22]}set sessioncheck(e){this.$$set({sessioncheck:e}),t.flush()}get location(){return this.$$.ctx[7]}set location(e){this.$$set({location:e}),t.flush()}get showsubgroups(){return this.$$.ctx[8]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get filteredcategories(){return this.$$.ctx[23]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[24]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get categoriesicon(){return this.$$.ctx[9]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[10]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[11]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}}t.create_custom_element(x,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{}},[],[],!0);exports.default=x;
@@ -1,4 +1,4 @@
1
- import { I as le, S as re, i as ce, f as c, c as me, s as ge, b as ue, e as N, g as j, C as S, k as F, J as ye, K as fe, L as he, n as de, M as o, d as E, v as be, N as Ne, O as we } from "./CasinoCalendar-DEhfBjpm.js";
1
+ import { I as le, S as re, i as ce, f as c, c as me, s as ge, b as ue, e as N, d as j, C as S, j as F, J as ye, K as fe, L as he, m as de, M as o, u as E, v as be, N as Ne, O as we } from "./CasinoCalendar-3HRZGpnG.js";
2
2
  function Q(i, e) {
3
3
  le(i, e);
4
4
  }
@@ -84,7 +84,7 @@ if (typeof window != "undefined") {
84
84
  }
85
85
  };
86
86
  };
87
- customElements.define = i(customElements.define), import("./CasinoSlider-CNWDP_I-.js").then(({ default: e }) => {
87
+ customElements.define = i(customElements.define), import("./CasinoSlider-D5B-CjPM.js").then(({ default: e }) => {
88
88
  !customElements.get("casino-slider") && customElements.define("casino-slider", e.element);
89
89
  });
90
90
  }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-9cVNHt1-.cjs");function N(i,t){e.addMessages(i,t)}function se(i){e.$locale.set(i)}const q={en:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"zh-hk":{collections:"收藏品",providers:"供应商",loading:"加載請稍候 ..."},de:{collections:"Game Collections",providers:"Game Providers",loading:"Laden, bitte warten..."},it:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},fr:{collections:"Collections",providers:"Fournisseurs",loading:"Chargement, veuillez patienter ..."},es:{collections:"Colecciones de juegos",providers:"Proveedores de juegos",loading:"Cargando…"},el:{collections:"Game Collections",providers:"Game Providers",loading:"Φορτώνει, παρακαλούμε περιμένετε ..."},tr:{collections:"Oyun Koleksiyonları",providers:"Oyun Sağlayıcıları",loading:"Yükleniyor, lütfen bekleyin..."},ru:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},ro:{collections:"Selectie Jocuri",providers:"Furnizori",loading:"Se încarcă, asteptati ..."},hr:{collections:"Kolekcije igara",providers:"Brendovi igara",loading:"Učitavam"},hu:{collections:"Game Collections",providers:"Game Providers",loading:"Betöltés, kérjük várjon..."},pl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},pt:{collections:"Game Collections",providers:"Game Providers",loading:"Carregando, por favor espere ..."},sl:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},sr:{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."},"pt-br":{collections:"Coleções de jogos",providers:"Provedores de jogos",Loading:"Carregando, por favor espere..."},"es-mx":{collections:"Colecciones de juego",providers:"Proveedores de juego",Loading:"Cargando, por favor espere..."}};function de(i){e.append_styles(i,"svelte-67y1f9",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));width:100%;height:330px;margin:0 auto;margin-top:24px}.CategoriesHeader{display:flex;justify-content:space-between;height:70px}.CategoriesHeader .Title{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:22px;font-weight:500}.CategoriesHeader .ButtonsContainer button{border:1px solid rgba(255, 255, 255, 0.2);border-radius:5px;background-color:rgba(0, 0, 25, 0.2);height:40px;width:40px;cursor:pointer}.CategoriesHeader .ButtonsContainer button:active{opacity:0.7}.CategoriesSlider{position:relative;height:230px;overflow:hidden;cursor:pointer}.CategoriesSliderWrapper{position:absolute;top:0;left:0}.CategoriesSlider .Animation{transition:transform 0.8s}.CategoriesSlider .CategorySlide{border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;height:200px;width:400px;margin-right:15px;background-size:cover}.CategoriesSlider .CategorySlide:not(.CategorySlideNoHighlight){background-color:#808080;background-blend-mode:multiply}.CategoriesSlider .CategorySlideTopContainer{height:100px;display:flex;align-items:center}.CategoriesSlider .CategorySlideLogo{transform:translate(-50%, -50%);max-width:175px;top:30%;max-height:100%;position:absolute}.CategoriesSlider .CategorySlideTitle{color:var(--emfe-w-casino-typography, var(--emfe-w-color-constrast, #FFFFFF));font-size:18px;letter-spacing:1px}.CategoriesSlider .CategorySlideGameContainer{display:flex;width:40px;justify-content:center;gap:10%;min-height:85px}.CategoriesSlider .CategorySlideGameImage{border-radius:10px;width:auto;height:55px;object-fit:cover}.CategoriesSlider .CategorySlideGames{color:white;text-align:center}.CategoriesSlider .CategorySlideGames p{font-size:8px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.Mobile.Providers{padding:25px 10px}.Mobile.Collections{padding:25px 10px}.Mobile.CasinoCollectionsProviders{padding:25px 10px}.Mobile .CategoriesSlider{overflow:auto;scroll-snap-type:x mandatory;-ms-overflow-style:none;scrollbar-width:none}.Mobile .CategoriesSlider::-webkit-scrollbar{display:none}.Mobile .CategorySlide{width:80vw;scroll-snap-align:start}.Mobile .ButtonsContainer{display:none}.Mobile .CategorySlideGameImage{border-radius:10px;width:auto;height:40px;object-fit:cover}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function R(i,t,l){const r=i.slice();return r[41]=t[l],r}function U(i,t,l){const r=i.slice();return r[44]=t[l],r}function ce(i){let t,l,r,o=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,m,k,u,c=i[8]>i[9]&&E(i),p=e.ensure_array_like(i[3]),f=[];for(let d=0;d<p.length;d+=1)f[d]=V(R(i,p,d));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(o),g=e.space(),c&&c.c(),v=e.space(),m=e.element("div");for(let d=0;d<f.length;d+=1)f[d].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(m,"class","CategoriesSlider"),e.add_render_callback(()=>i[27].call(m)),e.attr(t,"class",u="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(d,y){e.insert(d,t,y),e.append(t,l),e.append(l,r),e.append(r,a),e.append(l,g),c&&c.m(l,null),e.append(t,v),e.append(t,m);for(let s=0;s<f.length;s+=1)f[s]&&f[s].m(m,null);i[26](m),k=e.add_iframe_resize_listener(m,i[27].bind(m))},p(d,y){if(y[0]&2049&&o!==(o=(d[0]=="vendor"?d[11]("providers"):d[11]("collections"))+"")&&e.set_data(a,o),d[8]>d[9]?c?c.p(d,y):(c=E(d),c.c(),c.m(l,null)):c&&(c.d(1),c=null),y[0]&49166){p=e.ensure_array_like(d[3]);let s;for(s=0;s<p.length;s+=1){const h=R(d,p,s);f[s]?f[s].p(h,y):(f[s]=V(h),f[s].c(),f[s].m(m,null))}for(;s<f.length;s+=1)f[s].d(1);f.length=p.length}y[0]&1025&&u!==(u="CasinoCollectionsProviders "+(d[10]?"Mobile":"")+" "+(d[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",u)},d(d){d&&e.detach(t),c&&c.d(),e.destroy_each(f,d),i[26](null),k()}}}function ge(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(l,r){e.insert(l,t,r)},p:e.noop,d(l){l&&e.detach(t)}}}function E(i){let t,l,r,o,a,g;return{c(){t=e.element("div"),l=e.element("button"),l.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(14.656 0) rotate(90)" fill="#fff"></path></svg>',r=e.space(),o=e.element("button"),o.innerHTML='<svg id="Component_46_2" data-name="Component 46 – 2" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 16 24.656"><path id="Path_36" data-name="Path 36" d="M12.328,16,0,3.672,3.672,0l8.656,8.656L20.984,0l3.672,3.672Z" transform="translate(0 24.656) rotate(-90)" fill="#fff"></path></svg>',e.attr(t,"class","ButtonsContainer")},m(v,m){e.insert(v,t,m),e.append(t,l),e.append(t,r),e.append(t,o),a||(g=[e.listen(l,"click",i[22]),e.listen(o,"click",i[23])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function pe(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(o,a){e.insert(o,t,a),e.append(t,r)},p(o,a){a[0]&8&&l!==(l=o[41].name+"")&&e.set_data(r,l)},d(o){o&&e.detach(t)}}}function ue(i){let t,l,r;return{c(){t=e.element("img"),e.attr(t,"class","CategorySlideLogo"),e.src_url_equal(t.src,l=i[41].icon)||e.attr(t,"src",l),e.attr(t,"alt",r=i[41].name+" icon")},m(o,a){e.insert(o,t,a)},p(o,a){a[0]&8&&!e.src_url_equal(t.src,l=o[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=o[41].name+" icon")&&e.attr(t,"alt",r)},d(o){o&&e.detach(t)}}}function I(i){let t,l=i[44].name+"",r,o;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",o=i[44].name)},m(a,g){e.insert(a,t,g),e.append(t,r)},p(a,g){g[0]&8&&l!==(l=a[44].name+"")&&e.set_data(r,l),g[0]&8&&o!==(o=a[44].name)&&e.attr(t,"title",o)},d(a){a&&e.detach(t)}}}function W(i){let t,l,r,o,a,g,v,m;function k(){return i[24](i[44])}let u=i[2]=="true"&&I(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),u&&u.c(),g=e.space(),e.attr(l,"class","CategorySlideGameImage"),e.src_url_equal(l.src,r=i[44].defaultThumbnail)||e.attr(l,"src",r),e.attr(l,"alt",o=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,p){e.insert(c,t,p),e.append(t,l),e.append(t,a),u&&u.m(t,null),e.append(t,g),v||(m=e.listen(l,"click",e.stop_propagation(k)),v=!0)},p(c,p){i=c,p[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),p[0]&8&&o!==(o=i[44].name)&&e.attr(l,"alt",o),i[2]=="true"?u?u.p(i,p):(u=I(i),u.c(),u.m(t,g)):u&&(u.d(1),u=null)},d(c){c&&e.detach(t),u&&u.d(),v=!1,m()}}}function V(i){let t,l,r,o,a,g,v,m,k;function u(s,h){if(s[1]=="logo")return ue;if(s[1]=="title")return pe}let c=u(i),p=c&&c(i),f=e.ensure_array_like(i[41].games),d=[];for(let s=0;s<f.length;s+=1)d[s]=W(U(i,f,s));function y(){return i[25](i[41])}return{c(){var s,h;t=e.element("div"),l=e.element("div"),r=e.element("div"),p&&p.c(),o=e.space(),a=e.element("div");for(let _=0;_<d.length;_+=1)d[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((s=i[41])==null?void 0:s.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((h=i[41])==null?void 0:h.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(s,h){e.insert(s,t,h),e.append(t,l),e.append(l,r),p&&p.m(r,null),e.append(l,o),e.append(l,a);for(let _=0;_<d.length;_+=1)d[_]&&d[_].m(a,null);e.append(t,v),m||(k=e.listen(l,"click",y),m=!0)},p(s,h){var _,P;if(i=s,c===(c=u(i))&&p?p.p(i,h):(p&&p.d(1),p=c&&c(i),p&&(p.c(),p.m(r,null))),h[0]&16396){f=e.ensure_array_like(i[41].games);let b;for(b=0;b<f.length;b+=1){const G=U(i,f,b);d[b]?d[b].p(G,h):(d[b]=W(G),d[b].c(),d[b].m(a,null))}for(;b<d.length;b+=1)d[b].d(1);d.length=f.length}h[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),h[0]&8&&e.set_style(l,"background-image","url("+((P=i[41])==null?void 0:P.background)+")")},d(s){s&&e.detach(t),p&&p.d(),e.destroy_each(d,s),m=!1,k()}}}function fe(i){let t;function l(a,g){return a[7]?ge:ce}let r=l(i),o=r(i);return{c(){t=e.element("div"),o.c()},m(a,g){e.insert(a,t,g),o.m(t,null),i[28](t)},p(a,g){r===(r=l(a))&&o?o.p(a,g):(o.d(1),o=r(a),o&&(o.c(),o.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),o.d(),i[28](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,n=>l(11,r=n));let{endpoint:o=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:m=""}=t,{clientstyling:k=""}=t,{clientstylingurl:u=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:p=""}=t,f=[],d=!0,y,s=0,h=0,_=0,P,b,G,K=window.navigator.userAgent,M,L=0;const Z=()=>{fetch(c).then(C=>C.json()).then(C=>{Object.keys(C).forEach(w=>{N(w,C[w])})}).catch(C=>{console.log(C)})};Object.keys(q).forEach(n=>{N(n,q[n])});const J=()=>{const n=new URL(`${o}/v2/casino/groups/${a}`);n.searchParams.append("language",g),n.searchParams.append("expand","games"),fetch(n.href).then(C=>C.json()).then(C=>{l(7,d=!1);let w=C.items.filter(S=>S.flags==v);l(3,f=w.map(S=>{var O,B,A;return{id:S.id,name:S.name,icon:S.icon?S.icon:(A=(B=(O=S.vendors)==null?void 0:O.items[0])==null?void 0:B.subVendors[0])==null?void 0:A.logo,games:S.games.items.slice(0,4).map(ae=>ae),background:S.background,flag:S.flags}})),l(8,h=f.length)})},j=n=>{b=[...y.children],b.forEach((C,w)=>{C.style.transform=`translateX(${100*(n?w-n:w)}%)`}),P=b[0].getBoundingClientRect().width,X()},X=()=>{l(9,_=Math.floor(L/P))},T=()=>{j(s)},x=()=>{s===0?s=h-_:s-_<-1?s=0:s--,T()},F=()=>{s===h-_?s=0:h-_<s+1?s=h-_:s++,T()},z=(n,C,w,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:n,launchUrl:C,gameName:w,subVendor:S},window.location.href),typeof gtag=="function"&&gtag("event","OpenGame",{context:"CollectionsProviders",gameName:`${w}`})},H=n=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:n},window.location.href)},Y=()=>{se(g)},Q=()=>{let n=document.createElement("style");n.innerHTML=k,G.appendChild(n)},$=()=>{let n=new URL(u),C=document.createElement("style");fetch(n.href).then(w=>w.text()).then(w=>{C.innerHTML=w,setTimeout(()=>{G.appendChild(C)},1)})};e.onMount(()=>{l(10,M=e.isMobile(K))});const ee=()=>x(),te=()=>F(),ie=n=>z(n.gameId,n.launchUrl,n.name,n.subVendor),le=n=>H(n.id);function ne(n){e.binding_callbacks[n?"unshift":"push"](()=>{y=n,l(4,y)})}function oe(){L=this.clientWidth,l(6,L)}function re(n){e.binding_callbacks[n?"unshift":"push"](()=>{G=n,l(5,G)})}return i.$$set=n=>{"endpoint"in n&&l(16,o=n.endpoint),"datasource"in n&&l(17,a=n.datasource),"lang"in n&&l(18,g=n.lang),"type"in n&&l(0,v=n.type),"titletype"in n&&l(1,m=n.titletype),"clientstyling"in n&&l(19,k=n.clientstyling),"clientstylingurl"in n&&l(20,u=n.clientstylingurl),"translationurl"in n&&l(21,c=n.translationurl),"collectionprovidersgamenames"in n&&l(2,p=n.collectionprovidersgamenames)},i.$$.update=()=>{i.$$.dirty[0]&458752&&o&&a&&g&&J(),i.$$.dirty[0]&88&&L&&f&&y&&j(),i.$$.dirty[0]&262144&&g&&Y(),i.$$.dirty[0]&524320&&k&&G&&Q(),i.$$.dirty[0]&1048608&&u&&G&&$(),i.$$.dirty[0]&2097152&&c&&Z()},[v,m,p,f,y,G,L,d,h,_,M,r,x,F,z,H,o,a,g,k,u,c,ee,te,ie,le,ne,oe,re]}class D extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,fe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2},de,[-1,-1])}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[17]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get type(){return this.$$.ctx[0]}set type(t){this.$$set({type:t}),e.flush()}get titletype(){return this.$$.ctx[1]}set titletype(t){this.$$set({titletype:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get collectionprovidersgamenames(){return this.$$.ctx[2]}set collectionprovidersgamenames(t){this.$$set({collectionprovidersgamenames:t}),e.flush()}}e.create_custom_element(D,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{}},[],[],!0);exports.default=D;