@everymatrix/casino-lobby 1.0.69 → 1.0.71

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 (47) hide show
  1. package/components/CasinoCalendar-1k0BBA2l.js +5133 -0
  2. package/components/CasinoCalendar-BWBvGSII.cjs +9 -0
  3. package/components/CasinoCalendarDailyDetails-BJKIAkbG.js +605 -0
  4. package/components/CasinoCalendarDailyDetails-DgCaDV2E.cjs +1 -0
  5. package/components/CasinoCalendarDailyItem-C_l5_Cbi.cjs +1 -0
  6. package/components/CasinoCalendarDailyItem-TzcXj_xp.js +228 -0
  7. package/components/CasinoCategoriesSlider-DOK-1TsD.cjs +1 -0
  8. package/components/CasinoCategoriesSlider-H9kgmTPC.js +597 -0
  9. package/components/CasinoCollectionsProviders-CTMcJfG2.cjs +1 -0
  10. package/components/CasinoCollectionsProviders-DcAD0Be0.js +624 -0
  11. package/components/CasinoFavoritesSection-BZ_XLRmR.cjs +1 -0
  12. package/components/CasinoFavoritesSection-DH6BKL3S.js +418 -0
  13. package/components/CasinoFilter-D7CEXK-l.cjs +1 -0
  14. package/components/CasinoFilter-ud_GEK1c.js +628 -0
  15. package/components/CasinoGamePage-CCUgU-We.js +4282 -0
  16. package/components/CasinoGamePage-DWdj6K_K.cjs +18 -0
  17. package/components/CasinoGameThumbnail-C1lv7WRh.js +1823 -0
  18. package/components/CasinoGameThumbnail-d4TgneFz.cjs +38 -0
  19. package/components/CasinoGamesCategorySection-BHD5W6Ng.cjs +1 -0
  20. package/components/CasinoGamesCategorySection-Exr1MKB1.js +3018 -0
  21. package/components/CasinoJackpotBanner-BFf1l5SE.cjs +1 -0
  22. package/components/CasinoJackpotBanner-CQopUNVw.js +619 -0
  23. package/components/CasinoLastPlayedSection-CT0J4KWo.cjs +1 -0
  24. package/components/CasinoLastPlayedSection-Cg5CoSZQ.js +563 -0
  25. package/components/CasinoLobby-CQ5QQCC5.js +2341 -0
  26. package/components/CasinoLobby-CeXBQomU.cjs +1 -0
  27. package/components/CasinoModal-DRQwRcHh.cjs +1 -0
  28. package/components/CasinoModal-tGpCX8AS.js +372 -0
  29. package/components/CasinoMostPlayedSection-DxHuPS1x.js +580 -0
  30. package/components/CasinoMostPlayedSection-mR65chYs.cjs +1 -0
  31. package/components/CasinoMyGames-BEQmLbuR.js +1313 -0
  32. package/components/CasinoMyGames-fIZN6Hwx.cjs +1 -0
  33. package/components/CasinoPage-B3P3Beyx.js +3525 -0
  34. package/components/CasinoPage-CV3pXWvT.cjs +1 -0
  35. package/components/CasinoRandomGame-BHTCDUvy.cjs +2 -0
  36. package/components/CasinoRandomGame-DVAINYig.js +641 -0
  37. package/components/CasinoSearch-CEyowN7y.cjs +1 -0
  38. package/components/CasinoSearch-DhJUhsQG.js +1066 -0
  39. package/components/CasinoSlider-C9caYXJM.js +803 -0
  40. package/components/CasinoSlider-CeyUOxE1.cjs +1 -0
  41. package/components/CasinoSort-BKpaIJVo.js +425 -0
  42. package/components/CasinoSort-C_BR2AM6.cjs +1 -0
  43. package/components/CasinoWinners-OIwhz7Uv.cjs +1 -0
  44. package/components/CasinoWinners-osa_wAsU.js +878 -0
  45. package/components/GeneralAnimationLoading-Bn_rjnZO.cjs +1 -0
  46. package/components/GeneralAnimationLoading-hP0Vi1pK.js +75 -0
  47. package/package.json +8 -7
@@ -0,0 +1,228 @@
1
+ import { $ as T, a as A, S as O, i as q, f as g, c as U, s as G, b as V, e as d, r as L, u as E, d as l, D as S, G as C, g as W, v as s, w as J, A as H, C as P, k as K, o as N, m as Q, n as j } from "./CasinoCalendar-1k0BBA2l.js";
2
+ function X({ withLocale: n, translations: t }) {
3
+ T.subscribe((a) => {
4
+ a == null && (A.set(t), T.set(n));
5
+ });
6
+ }
7
+ function Y(n) {
8
+ V(n, "svelte-128e4zn", '.svelte-128e4zn.svelte-128e4zn,.svelte-128e4zn.svelte-128e4zn::before,.svelte-128e4zn.svelte-128e4zn::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Container.svelte-128e4zn.svelte-128e4zn{display:flex;overflow-x:unset;justify-content:space-between;position:relative;width:100%;border-radius:0 0 5px 5px}.Container.svelte-128e4zn.svelte-128e4zn::-webkit-scrollbar{display:none}.CalendarBar.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn::before{content:"";position:absolute;z-index:-1}.RingLeft.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn::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.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{animation:svelte-128e4zn-tearoff 1.5s both;transform-origin:0 100%;box-shadow:-1px -1px 4px rgba(0, 0, 0, 0.4)}@keyframes svelte-128e4zn-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.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{width:100%}.CasinoCalendarItemBackground.svelte-128e4zn.svelte-128e4zn{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.svelte-128e4zn.svelte-128e4zn{height:20px;margin:15px}.CasinoCalendarDailyIcon.svelte-128e4zn img.svelte-128e4zn{max-height:28px}.CasinoCalendarDailyTitle.svelte-128e4zn.svelte-128e4zn{text-transform:capitalize;font-weight:600;font-size:16px}.CasinoCalendarDailyItemDescription.svelte-128e4zn.svelte-128e4zn{padding:15px;margin-bottom:20px;font-size:14px;height:90px;white-space:unset;overflow:hidden;text-overflow:ellipsis}.CasinoCalendarDailyItemButton.svelte-128e4zn.svelte-128e4zn{width:100%;text-align:center}.MoreInfoButton.svelte-128e4zn.svelte-128e4zn{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 Z(n) {
11
+ let t, a, y, u, f, w, i, p, o, b, m, v, x, c, z, M, k, h, I, F, _, B, D;
12
+ return {
13
+ c() {
14
+ t = d("div"), a = d("div"), y = d("div"), u = d("div"), f = d("div"), f.innerHTML = '<div class="RingLeft svelte-128e4zn"></div> <div class="RingRight svelte-128e4zn"></div>', w = L(), i = d("div"), p = d("div"), o = d("img"), m = L(), v = d("div"), x = E(
15
+ /*dailyday*/
16
+ n[2]
17
+ ), c = L(), z = d("div"), M = L(), k = d("div"), h = d("button"), I = E(
18
+ /*dailybuttontitle*/
19
+ n[3]
20
+ ), l(f, "class", "CalendarBar svelte-128e4zn"), S(o.src, b = /*dailyicon*/
21
+ n[1]) || l(o, "src", b), l(
22
+ o,
23
+ "alt",
24
+ /*dailyicon*/
25
+ n[1]
26
+ ), l(o, "class", "svelte-128e4zn"), l(p, "class", "CasinoCalendarDailyIcon svelte-128e4zn"), l(v, "class", "CasinoCalendarDailyTitle svelte-128e4zn"), l(z, "class", "CasinoCalendarDailyItemDescription svelte-128e4zn"), l(h, "class", "MoreInfoButton svelte-128e4zn"), l(k, "class", "CasinoCalendarDailyItemButton svelte-128e4zn"), l(i, "class", F = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
27
+ n[4] == "OpenCalendarModal" ? "Tear" : "") + " svelte-128e4zn"), C(i, "background-image", "url('" + /*dailybackground*/
28
+ n[0] + "')"), C(i, "background-size", "cover"), C(i, "background-position", "center"), C(i, "-webkit-background-size", "cover"), C(i, "-moz-background-size", "cover"), C(i, "-o-background-size", "cover"), l(u, "class", "CalendarCard svelte-128e4zn"), l(y, "class", "CasinoCalendarItems svelte-128e4zn"), l(a, "class", _ = "Container " + /*mobileView*/
29
+ (n[7] ? "Mobile" : "") + " svelte-128e4zn"), l(t, "class", "svelte-128e4zn");
30
+ },
31
+ m(e, r) {
32
+ W(e, t, r), s(t, a), s(a, y), s(y, u), s(u, f), s(u, w), s(u, i), s(i, p), s(p, o), s(i, m), s(i, v), s(v, x), s(i, c), s(i, z), n[14](z), s(i, M), s(i, k), s(k, h), s(h, I), n[16](t), B || (D = J(
33
+ h,
34
+ "click",
35
+ /*click_handler*/
36
+ n[15]
37
+ ), B = !0);
38
+ },
39
+ p(e, [r]) {
40
+ r & /*dailyicon*/
41
+ 2 && !S(o.src, b = /*dailyicon*/
42
+ e[1]) && l(o, "src", b), r & /*dailyicon*/
43
+ 2 && l(
44
+ o,
45
+ "alt",
46
+ /*dailyicon*/
47
+ e[1]
48
+ ), r & /*dailyday*/
49
+ 4 && H(
50
+ x,
51
+ /*dailyday*/
52
+ e[2]
53
+ ), r & /*dailybuttontitle*/
54
+ 8 && H(
55
+ I,
56
+ /*dailybuttontitle*/
57
+ e[3]
58
+ ), r & /*index*/
59
+ 16 && F !== (F = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
60
+ e[4] == "OpenCalendarModal" ? "Tear" : "") + " svelte-128e4zn") && l(i, "class", F), r & /*dailybackground*/
61
+ 1 && C(i, "background-image", "url('" + /*dailybackground*/
62
+ e[0] + "')"), r & /*mobileView*/
63
+ 128 && _ !== (_ = "Container " + /*mobileView*/
64
+ (e[7] ? "Mobile" : "") + " svelte-128e4zn") && l(a, "class", _);
65
+ },
66
+ i: P,
67
+ o: P,
68
+ d(e) {
69
+ e && K(t), n[14](null), n[16](null), B = !1, D();
70
+ }
71
+ };
72
+ }
73
+ function $(n, t, a) {
74
+ let { cmsendpoint: y = "" } = t, { lang: u = "" } = t, { dailybackground: f = "" } = t, { dailyicon: w = "" } = t, { dailyday: i = "" } = t, { dailydescription: p = "<p></p>" } = t, { dailybuttontitle: o = "" } = t, { index: b = "0" } = t, { clientstyling: m = "" } = t, { clientstylingurl: v = "" } = t;
75
+ X({ withLocale: "en", translations: {} });
76
+ let x, c, z = !1, M = window.navigator.userAgent;
77
+ const k = () => {
78
+ let e = document.createElement("div");
79
+ e.innerHTML = p, x && x.append(e);
80
+ }, h = () => {
81
+ window.postMessage({ type: "OpenCalendar", index: b }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
82
+ }, I = () => {
83
+ let e = document.createElement("style");
84
+ e.innerHTML = m, c.appendChild(e);
85
+ }, F = () => {
86
+ let e = new URL(v), r = document.createElement("style");
87
+ fetch(e.href).then((R) => R.text()).then((R) => {
88
+ r.innerHTML = R, setTimeout(
89
+ () => {
90
+ c.appendChild(r);
91
+ },
92
+ 1
93
+ ), setTimeout(
94
+ () => {
95
+ },
96
+ 500
97
+ );
98
+ });
99
+ };
100
+ N(() => {
101
+ Q(M) && a(7, z = !0);
102
+ });
103
+ function _(e) {
104
+ j[e ? "unshift" : "push"](() => {
105
+ x = e, a(6, x);
106
+ });
107
+ }
108
+ const B = () => h();
109
+ function D(e) {
110
+ j[e ? "unshift" : "push"](() => {
111
+ c = e, a(5, c);
112
+ });
113
+ }
114
+ return n.$$set = (e) => {
115
+ "cmsendpoint" in e && a(9, y = e.cmsendpoint), "lang" in e && a(10, u = e.lang), "dailybackground" in e && a(0, f = e.dailybackground), "dailyicon" in e && a(1, w = e.dailyicon), "dailyday" in e && a(2, i = e.dailyday), "dailydescription" in e && a(11, p = e.dailydescription), "dailybuttontitle" in e && a(3, o = e.dailybuttontitle), "index" in e && a(4, b = e.index), "clientstyling" in e && a(12, m = e.clientstyling), "clientstylingurl" in e && a(13, v = e.clientstylingurl);
116
+ }, n.$$.update = () => {
117
+ n.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
118
+ 2063 && w && i && p && o && f && k(), n.$$.dirty & /*clientstyling, customStylingContainer*/
119
+ 4128 && m && c && I(), n.$$.dirty & /*clientstylingurl, customStylingContainer*/
120
+ 8224 && v && c && F();
121
+ }, [
122
+ f,
123
+ w,
124
+ i,
125
+ o,
126
+ b,
127
+ c,
128
+ x,
129
+ z,
130
+ h,
131
+ y,
132
+ u,
133
+ p,
134
+ m,
135
+ v,
136
+ _,
137
+ B,
138
+ D
139
+ ];
140
+ }
141
+ class ee extends O {
142
+ constructor(t) {
143
+ super(), q(
144
+ this,
145
+ t,
146
+ $,
147
+ Z,
148
+ G,
149
+ {
150
+ cmsendpoint: 9,
151
+ lang: 10,
152
+ dailybackground: 0,
153
+ dailyicon: 1,
154
+ dailyday: 2,
155
+ dailydescription: 11,
156
+ dailybuttontitle: 3,
157
+ index: 4,
158
+ clientstyling: 12,
159
+ clientstylingurl: 13
160
+ },
161
+ Y
162
+ );
163
+ }
164
+ get cmsendpoint() {
165
+ return this.$$.ctx[9];
166
+ }
167
+ set cmsendpoint(t) {
168
+ this.$$set({ cmsendpoint: t }), g();
169
+ }
170
+ get lang() {
171
+ return this.$$.ctx[10];
172
+ }
173
+ set lang(t) {
174
+ this.$$set({ lang: t }), g();
175
+ }
176
+ get dailybackground() {
177
+ return this.$$.ctx[0];
178
+ }
179
+ set dailybackground(t) {
180
+ this.$$set({ dailybackground: t }), g();
181
+ }
182
+ get dailyicon() {
183
+ return this.$$.ctx[1];
184
+ }
185
+ set dailyicon(t) {
186
+ this.$$set({ dailyicon: t }), g();
187
+ }
188
+ get dailyday() {
189
+ return this.$$.ctx[2];
190
+ }
191
+ set dailyday(t) {
192
+ this.$$set({ dailyday: t }), g();
193
+ }
194
+ get dailydescription() {
195
+ return this.$$.ctx[11];
196
+ }
197
+ set dailydescription(t) {
198
+ this.$$set({ dailydescription: t }), g();
199
+ }
200
+ get dailybuttontitle() {
201
+ return this.$$.ctx[3];
202
+ }
203
+ set dailybuttontitle(t) {
204
+ this.$$set({ dailybuttontitle: t }), g();
205
+ }
206
+ get index() {
207
+ return this.$$.ctx[4];
208
+ }
209
+ set index(t) {
210
+ this.$$set({ index: t }), g();
211
+ }
212
+ get clientstyling() {
213
+ return this.$$.ctx[12];
214
+ }
215
+ set clientstyling(t) {
216
+ this.$$set({ clientstyling: t }), g();
217
+ }
218
+ get clientstylingurl() {
219
+ return this.$$.ctx[13];
220
+ }
221
+ set clientstylingurl(t) {
222
+ this.$$set({ clientstylingurl: t }), g();
223
+ }
224
+ }
225
+ U(ee, { cmsendpoint: {}, lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {} }, [], [], !0);
226
+ export {
227
+ ee as default
228
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-BWBvGSII.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:"Lobby",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-CeyUOxE1.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:P=""}=e,{location:T="secondaryMenu"}=e,{showsubgroups:j="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,P=a.sessioncheck),"location"in a&&s(7,T=a.location),"showsubgroups"in a&&s(8,j=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,T,j,q,F,A,g,f,y,R,I,S,b,_,N,w,P,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;