@everymatrix/casino-lobby 1.55.0 → 1.56.0
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.
- package/components/CasinoCalendar-CFPK0TM5.cjs +9 -0
- package/components/{CasinoCalendar-CRnGs6mI.js → CasinoCalendar-CSMUhfCr.js} +989 -989
- package/components/{CasinoCalendar-BKvw2GLN.js → CasinoCalendar-_T8fa3tA.js} +975 -975
- package/components/CasinoCalendarDailyDetails-CGRqVKFV.js +693 -0
- package/components/CasinoCalendarDailyDetails-DspcjY5l.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-DueCbaZn.js +693 -0
- package/components/CasinoCalendarDailyItem-DaSrAYwS.cjs +1 -0
- package/components/CasinoCalendarDailyItem-DpLOlYVI.js +306 -0
- package/components/CasinoCalendarDailyItem-DxYbPmky.js +306 -0
- package/components/{CasinoCategoriesSlider-C7hbpydX.js → CasinoCategoriesSlider-B7jmX0uM.js} +77 -77
- package/components/{CasinoCategoriesSlider-hJChLXnm.js → CasinoCategoriesSlider-DkmZ6uE9.js} +79 -79
- package/components/CasinoCategoriesSlider-Tm48k88y.cjs +1 -0
- package/components/{CasinoCollectionsProviders-CTvTqZY1.js → CasinoCollectionsProviders-CFJKyip5.js} +56 -56
- package/components/{CasinoCollectionsProviders-Cyc5HYpW.js → CasinoCollectionsProviders-XHUKRCjH.js} +54 -54
- package/components/CasinoCollectionsProviders-fHbyEo_l.cjs +1 -0
- package/components/{CasinoFavoritesSection-D4v8HNn9.js → CasinoFavoritesSection-BJKuORXc.js} +37 -36
- package/components/CasinoFavoritesSection-DAfQZFKH.cjs +1 -0
- package/components/{CasinoFavoritesSection-B4JlTRNa.js → CasinoFavoritesSection-ui8ebJSk.js} +37 -36
- package/components/CasinoFilter-BZrHKXm3.cjs +1 -0
- package/components/{CasinoFilter-CgPbbuBc.js → CasinoFilter-Cj6Ya1tA.js} +244 -245
- package/components/{CasinoFilter-ZQCeB5st.js → CasinoFilter-t6_A4K9e.js} +234 -233
- package/components/CasinoGamePage-BCpBojD8.cjs +18 -0
- package/components/{CasinoGamePage-DnFlR6PD.js → CasinoGamePage-DH-mxVYx.js} +750 -750
- package/components/{CasinoGamePage-lOejw_q6.js → CasinoGamePage-DQ1Yd_-1.js} +787 -787
- package/components/{CasinoGameThumbnail-h69vAUbV.js → CasinoGameThumbnail-B15M2LaO.js} +354 -370
- package/components/CasinoGameThumbnail-CHGG4fWS.cjs +38 -0
- package/components/{CasinoGameThumbnail-Aj4sPAss.js → CasinoGameThumbnail-CmtUwom1.js} +282 -266
- package/components/{CasinoGamesCategorySection-PiRBRWmh.js → CasinoGamesCategorySection-D9nxbG-c.js} +1084 -1120
- package/components/CasinoGamesCategorySection-Dw87pk8g.cjs +1 -0
- package/components/{CasinoGamesCategorySection-C9FCv7PW.js → CasinoGamesCategorySection-lpoHUMLN.js} +659 -695
- package/components/{CasinoJackpotBanner-BdzgC-lW.js → CasinoJackpotBanner-COZRcenh.js} +149 -147
- package/components/{CasinoJackpotBanner-Dx_3WwEw.js → CasinoJackpotBanner-DcwCa-Hp.js} +146 -144
- package/components/CasinoJackpotBanner-vFHgMV4j.cjs +1 -0
- package/components/CasinoLastPlayedSection-DUCFQv-7.cjs +1 -0
- package/components/{CasinoLastPlayedSection-r73sTCi9.js → CasinoLastPlayedSection-IZ9mars2.js} +56 -56
- package/components/{CasinoLastPlayedSection-BXGcYUad.js → CasinoLastPlayedSection-yetII3tl.js} +56 -56
- package/components/CasinoLobby-CZ0buhgH.cjs +1 -0
- package/components/{CasinoLobby-60oTKJCK.js → CasinoLobby-CoCRB4M8.js} +324 -305
- package/components/{CasinoLobby-DHl1_-VE.js → CasinoLobby-DOvk4Q1L.js} +320 -301
- package/components/CasinoModal-6keCUEEx.cjs +1 -0
- package/components/{CasinoModal-B7R5L0mw.js → CasinoModal-DDDhdR0c.js} +55 -55
- package/components/{CasinoModal-wz-kI5U1.js → CasinoModal-Dzu3FQyi.js} +55 -55
- package/components/CasinoMostPlayedSection-BNDdZOM6.cjs +1 -0
- package/components/{CasinoMostPlayedSection-CpO0b2PN.js → CasinoMostPlayedSection-CGqU9ZQv.js} +168 -159
- package/components/{CasinoMostPlayedSection-CxQrM8-U.js → CasinoMostPlayedSection-D0w6a_z2.js} +168 -159
- package/components/{CasinoMyGames-B0AvdkLy.js → CasinoMyGames-BKqlNnO1.js} +329 -296
- package/components/CasinoMyGames-CX5HKRLY.cjs +1 -0
- package/components/{CasinoMyGames-ieyBjArx.js → CasinoMyGames-Dy3IMfzN.js} +329 -296
- package/components/CasinoPage--1tMufa9.cjs +1 -0
- package/components/{CasinoPage-CcV-qeX_.js → CasinoPage-BnrghJel.js} +709 -646
- package/components/{CasinoPage-E4Nn1l0F.js → CasinoPage-DYcUhqdZ.js} +592 -529
- package/components/{CasinoRandomGame-D1gqYJkg.cjs → CasinoRandomGame-B1qCGSlR.cjs} +2 -2
- package/components/{CasinoRandomGame-BEOONr7N.js → CasinoRandomGame-Cup5oHY3.js} +67 -67
- package/components/{CasinoRandomGame-DoSJSKrA.js → CasinoRandomGame-Dq7oLh0O.js} +66 -66
- package/components/{CasinoSearch-3nC8pR7D.cjs → CasinoSearch-B1D8nnr0.cjs} +1 -1
- package/components/{CasinoSearch-BOSoxjjv.js → CasinoSearch-DlUwO5L4.js} +63 -63
- package/components/{CasinoSearch-DqfKG5Mj.js → CasinoSearch-jV0H_1Yg.js} +63 -63
- package/components/CasinoSlider-4pDZHG6x.cjs +1 -0
- package/components/{CasinoSlider-ylo7nRmY.js → CasinoSlider-ChnKJ8kH.js} +120 -120
- package/components/{CasinoSlider-DlBcdeDm.js → CasinoSlider-Ot2uFDD8.js} +103 -103
- package/components/CasinoSort-BnarJSWg.js +428 -0
- package/components/CasinoSort-DltZUpda.js +427 -0
- package/components/CasinoSort-jqMnIqLs.cjs +1 -0
- package/components/{CasinoWinners-CSDCICsh.js → CasinoWinners-BkJBCXPe.js} +157 -157
- package/components/{CasinoWinners-Br_rOUdI.cjs → CasinoWinners-Bs7Oh-m-.cjs} +1 -1
- package/components/{CasinoWinners-CeLmSRE4.js → CasinoWinners-CBgbYBfP.js} +159 -159
- package/components/GeneralAnimationLoading-BLss2VP4.cjs +1 -0
- package/components/GeneralAnimationLoading-BUY2TGQr.js +84 -0
- package/components/GeneralAnimationLoading-CRju5T01.js +84 -0
- package/es2015/casino-lobby.cjs +1 -1
- package/es2015/casino-lobby.js +1 -1
- package/esnext/casino-lobby.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-B5g4-G4Z.js → casino-play-random-game-CBXhEsCq.js} +55 -30
- package/stencil/{casino-play-random-game-Cphp76Jq.js → casino-play-random-game-PZXnDzfs.js} +74 -49
- package/stencil/{casino-play-random-game-CQe5iDJ8.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
- package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
- package/stencil/index-29915e18-CQ_kWzEh.js +630 -0
- package/stencil/index-29915e18-MPiqo7vY.js +646 -0
- package/components/CasinoCalendar-P6bQ-mxN.cjs +0 -9
- package/components/CasinoCalendarDailyDetails-B-FOmYEZ.js +0 -701
- package/components/CasinoCalendarDailyDetails-DYTiZ7iE.js +0 -701
- package/components/CasinoCalendarDailyDetails-DicGOCGy.cjs +0 -1
- package/components/CasinoCalendarDailyItem-BsUUCx7a.js +0 -315
- package/components/CasinoCalendarDailyItem-DDm6oH8O.cjs +0 -1
- package/components/CasinoCalendarDailyItem-DIhsLlMC.js +0 -315
- package/components/CasinoCategoriesSlider-wt-dJlF9.cjs +0 -1
- package/components/CasinoCollectionsProviders-B0h7SupJ.cjs +0 -1
- package/components/CasinoFavoritesSection-CcyN5mtI.cjs +0 -1
- package/components/CasinoFilter-EA285UxQ.cjs +0 -1
- package/components/CasinoGamePage-D2VGIU0X.cjs +0 -18
- package/components/CasinoGameThumbnail-ClSBiG0I.cjs +0 -38
- package/components/CasinoGamesCategorySection-X0aDh13K.cjs +0 -1
- package/components/CasinoJackpotBanner-rV5P1O6d.cjs +0 -1
- package/components/CasinoLastPlayedSection-BP9oa18h.cjs +0 -1
- package/components/CasinoLobby-CB5KGhNa.cjs +0 -1
- package/components/CasinoModal-B7pt3Gcb.cjs +0 -1
- package/components/CasinoMostPlayedSection-CaHWOtw_.cjs +0 -1
- package/components/CasinoMyGames-R7NrCxgd.cjs +0 -1
- package/components/CasinoPage-azRHPGyF.cjs +0 -1
- package/components/CasinoSlider-Zgasc58K.cjs +0 -1
- package/components/CasinoSort-CVwRicsk.js +0 -427
- package/components/CasinoSort-D3rxrF3Z.cjs +0 -1
- package/components/CasinoSort-D9KTb90Q.js +0 -428
- package/components/GeneralAnimationLoading-BRBLoSEB.js +0 -75
- package/components/GeneralAnimationLoading-Bu4_iets.cjs +0 -1
- package/components/GeneralAnimationLoading-DoN4gYz0.js +0 -75
- package/stencil/index-eac6b960-BaE9i06M.cjs +0 -1
- package/stencil/index-eac6b960-DXIu1GM6.js +0 -579
- package/stencil/index-eac6b960-Dvyvd5zP.js +0 -563
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { a as U, $ as q, S as V, i as G, f as g, c as J, s as K, b as Q, e as c, r as D, u as R, v as o, E as O, I as _, d as X, w as r, x as Y, B as W, D as A, j as Z, k as $, o as ee, m as te, n as H, F as ae } from "./CasinoCalendar-BKvw2GLN.js";
|
|
2
|
-
function P(a, t) {
|
|
3
|
-
U(a, t);
|
|
4
|
-
}
|
|
5
|
-
function ne(a) {
|
|
6
|
-
q.set(a);
|
|
7
|
-
}
|
|
8
|
-
const N = {
|
|
9
|
-
en: {
|
|
10
|
-
error: "500 Error - Internal Server Error",
|
|
11
|
-
loading: "Loading ...",
|
|
12
|
-
monday: "Monday",
|
|
13
|
-
tuesday: "Tuesday",
|
|
14
|
-
wednesday: "Wednesday",
|
|
15
|
-
thursday: "Thursday",
|
|
16
|
-
friday: "Friday",
|
|
17
|
-
saturday: "Saturday",
|
|
18
|
-
sunday: "Sunday"
|
|
19
|
-
},
|
|
20
|
-
hr: {
|
|
21
|
-
error: "500 Error - Internal Server Error",
|
|
22
|
-
loading: "Loading ...",
|
|
23
|
-
monday: "ponedjeljak",
|
|
24
|
-
tuesday: "utorak",
|
|
25
|
-
wednesday: "srijeda",
|
|
26
|
-
thursday: "četvrtak",
|
|
27
|
-
friday: "petak",
|
|
28
|
-
saturday: "subota",
|
|
29
|
-
sunday: "nedjelja"
|
|
30
|
-
},
|
|
31
|
-
"pt-br": {
|
|
32
|
-
error: "500 Error - Internal Server Error",
|
|
33
|
-
loading: "Loading ...",
|
|
34
|
-
monday: "Monday",
|
|
35
|
-
tuesday: "Tuesday",
|
|
36
|
-
wednesday: "Wednesday",
|
|
37
|
-
thursday: "Thursday",
|
|
38
|
-
friday: "Friday",
|
|
39
|
-
saturday: "Saturday",
|
|
40
|
-
sunday: "Sunday"
|
|
41
|
-
},
|
|
42
|
-
"es-mx": {
|
|
43
|
-
error: "500 Error - Internal Server Error",
|
|
44
|
-
loading: "Loading ...",
|
|
45
|
-
monday: "Monday",
|
|
46
|
-
tuesday: "Tuesday",
|
|
47
|
-
wednesday: "Wednesday",
|
|
48
|
-
thursday: "Thursday",
|
|
49
|
-
friday: "Friday",
|
|
50
|
-
saturday: "Saturday",
|
|
51
|
-
sunday: "Sunday"
|
|
52
|
-
},
|
|
53
|
-
tr: {
|
|
54
|
-
error: "500 Error - Internal Server Error",
|
|
55
|
-
loading: "Loading ...",
|
|
56
|
-
monday: "Monday",
|
|
57
|
-
tuesday: "Tuesday",
|
|
58
|
-
wednesday: "Wednesday",
|
|
59
|
-
thursday: "Thursday",
|
|
60
|
-
friday: "Friday",
|
|
61
|
-
saturday: "Saturday",
|
|
62
|
-
sunday: "Sunday"
|
|
63
|
-
},
|
|
64
|
-
"en-us": {
|
|
65
|
-
error: "500 Error - Internal Server Error",
|
|
66
|
-
loading: "Loading ...",
|
|
67
|
-
monday: "Monday",
|
|
68
|
-
tuesday: "Tuesday",
|
|
69
|
-
wednesday: "Wednesday",
|
|
70
|
-
thursday: "Thursday",
|
|
71
|
-
friday: "Friday",
|
|
72
|
-
saturday: "Saturday",
|
|
73
|
-
sunday: "Sunday"
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
function ie(a) {
|
|
77
|
-
Q(a, "svelte-1jtwzs1", '*,*::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(--emw--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(--emw--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(--emw--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(--emw--color-white, #FFFFFF);background:var(--emw--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}');
|
|
78
|
-
}
|
|
79
|
-
function re(a) {
|
|
80
|
-
let t, i, C, l, m, T, n, h, s, w, v, f, p = (
|
|
81
|
-
/*$_*/
|
|
82
|
-
a[8](`${/*dailyday*/
|
|
83
|
-
a[2]}`) + ""
|
|
84
|
-
), b, y, k, B, S, F, z, I, E, L, j;
|
|
85
|
-
return {
|
|
86
|
-
c() {
|
|
87
|
-
t = c("div"), i = c("div"), C = c("div"), l = c("div"), m = c("div"), m.innerHTML = '<div class="RingLeft"></div> <div class="RingRight"></div>', T = D(), n = c("div"), h = c("div"), s = c("img"), v = D(), f = c("div"), b = R(p), y = D(), k = c("div"), B = D(), S = c("div"), F = c("button"), z = R(
|
|
88
|
-
/*dailybuttontitle*/
|
|
89
|
-
a[3]
|
|
90
|
-
), o(m, "class", "CalendarBar"), O(s.src, w = /*dailyicon*/
|
|
91
|
-
a[1]) || o(s, "src", w), o(
|
|
92
|
-
s,
|
|
93
|
-
"alt",
|
|
94
|
-
/*dailyicon*/
|
|
95
|
-
a[1]
|
|
96
|
-
), o(h, "class", "CasinoCalendarDailyIcon"), o(f, "class", "CasinoCalendarDailyTitle"), o(k, "class", "CasinoCalendarDailyItemDescription"), o(F, "class", "MoreInfoButton"), o(S, "class", "CasinoCalendarDailyItemButton"), o(n, "class", I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
97
|
-
a[4] == "OpenCalendarModal" ? "Tear" : "")), _(n, "background-image", "url('" + /*dailybackground*/
|
|
98
|
-
a[0] + "')"), _(n, "background-size", "cover"), _(n, "background-position", "center"), _(n, "-webkit-background-size", "cover"), _(n, "-moz-background-size", "cover"), _(n, "-o-background-size", "cover"), o(l, "class", "CalendarCard"), o(C, "class", "CasinoCalendarItems"), o(i, "class", E = "Container " + /*mobileView*/
|
|
99
|
-
(a[7] ? "Mobile" : ""));
|
|
100
|
-
},
|
|
101
|
-
m(d, u) {
|
|
102
|
-
X(d, t, u), r(t, i), r(i, C), r(C, l), r(l, m), r(l, T), r(l, n), r(n, h), r(h, s), r(n, v), r(n, f), r(f, b), r(n, y), r(n, k), a[15](k), r(n, B), r(n, S), r(S, F), r(F, z), a[17](t), L || (j = Y(
|
|
103
|
-
F,
|
|
104
|
-
"click",
|
|
105
|
-
/*click_handler*/
|
|
106
|
-
a[16]
|
|
107
|
-
), L = !0);
|
|
108
|
-
},
|
|
109
|
-
p(d, [u]) {
|
|
110
|
-
u & /*dailyicon*/
|
|
111
|
-
2 && !O(s.src, w = /*dailyicon*/
|
|
112
|
-
d[1]) && o(s, "src", w), u & /*dailyicon*/
|
|
113
|
-
2 && o(
|
|
114
|
-
s,
|
|
115
|
-
"alt",
|
|
116
|
-
/*dailyicon*/
|
|
117
|
-
d[1]
|
|
118
|
-
), u & /*$_, dailyday*/
|
|
119
|
-
260 && p !== (p = /*$_*/
|
|
120
|
-
d[8](`${/*dailyday*/
|
|
121
|
-
d[2]}`) + "") && W(b, p), u & /*dailybuttontitle*/
|
|
122
|
-
8 && W(
|
|
123
|
-
z,
|
|
124
|
-
/*dailybuttontitle*/
|
|
125
|
-
d[3]
|
|
126
|
-
), u & /*index*/
|
|
127
|
-
16 && I !== (I = "CasinoCalendarItemBackground CalendarPage " + (/*index*/
|
|
128
|
-
d[4] == "OpenCalendarModal" ? "Tear" : "")) && o(n, "class", I), u & /*dailybackground*/
|
|
129
|
-
1 && _(n, "background-image", "url('" + /*dailybackground*/
|
|
130
|
-
d[0] + "')"), u & /*mobileView*/
|
|
131
|
-
128 && E !== (E = "Container " + /*mobileView*/
|
|
132
|
-
(d[7] ? "Mobile" : "")) && o(i, "class", E);
|
|
133
|
-
},
|
|
134
|
-
i: A,
|
|
135
|
-
o: A,
|
|
136
|
-
d(d) {
|
|
137
|
-
d && Z(t), a[15](null), a[17](null), L = !1, j();
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
function oe(a, t, i) {
|
|
142
|
-
let C;
|
|
143
|
-
$(a, ae, (e) => i(8, C = e));
|
|
144
|
-
let { lang: l = "" } = t, { dailybackground: m = "" } = t, { dailyicon: T = "" } = t, { dailyday: n = "" } = t, { dailydescription: h = "<p></p>" } = t, { dailybuttontitle: s = "" } = t, { index: w = "0" } = t, { clientstyling: v = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: p = "" } = t, b, y, k = !1, B = window.navigator.userAgent;
|
|
145
|
-
const S = () => {
|
|
146
|
-
ne(l);
|
|
147
|
-
};
|
|
148
|
-
Object.keys(N).forEach((e) => {
|
|
149
|
-
P(e, N[e]);
|
|
150
|
-
});
|
|
151
|
-
const F = () => {
|
|
152
|
-
let e = p;
|
|
153
|
-
if (e)
|
|
154
|
-
return fetch(e).then((x) => x.json()).then((x) => {
|
|
155
|
-
Object.keys(x).forEach((M) => {
|
|
156
|
-
P(M, x[M]);
|
|
157
|
-
});
|
|
158
|
-
}).catch((x) => {
|
|
159
|
-
console.log(x);
|
|
160
|
-
});
|
|
161
|
-
}, z = () => {
|
|
162
|
-
let e = document.createElement("div");
|
|
163
|
-
e.innerHTML = h, b && b.append(e);
|
|
164
|
-
}, I = () => {
|
|
165
|
-
window.postMessage({ type: "OpenCalendar", index: w }, window.location.href), typeof gtag == "function" && gtag("event", "MoreInfo", { context: "CalendarWidgetItem" });
|
|
166
|
-
}, E = () => {
|
|
167
|
-
let e = document.createElement("style");
|
|
168
|
-
e.innerHTML = v, y.appendChild(e);
|
|
169
|
-
}, L = () => {
|
|
170
|
-
let e = new URL(f), x = document.createElement("style");
|
|
171
|
-
fetch(e.href).then((M) => M.text()).then((M) => {
|
|
172
|
-
x.innerHTML = M, setTimeout(
|
|
173
|
-
() => {
|
|
174
|
-
y.appendChild(x);
|
|
175
|
-
},
|
|
176
|
-
1
|
|
177
|
-
), setTimeout(
|
|
178
|
-
() => {
|
|
179
|
-
},
|
|
180
|
-
500
|
|
181
|
-
);
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
ee(() => {
|
|
185
|
-
te(B) && i(7, k = !0);
|
|
186
|
-
});
|
|
187
|
-
function j(e) {
|
|
188
|
-
H[e ? "unshift" : "push"](() => {
|
|
189
|
-
b = e, i(6, b);
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
const d = () => I();
|
|
193
|
-
function u(e) {
|
|
194
|
-
H[e ? "unshift" : "push"](() => {
|
|
195
|
-
y = e, i(5, y);
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
return a.$$set = (e) => {
|
|
199
|
-
"lang" in e && i(10, l = e.lang), "dailybackground" in e && i(0, m = e.dailybackground), "dailyicon" in e && i(1, T = e.dailyicon), "dailyday" in e && i(2, n = e.dailyday), "dailydescription" in e && i(11, h = e.dailydescription), "dailybuttontitle" in e && i(3, s = e.dailybuttontitle), "index" in e && i(4, w = e.index), "clientstyling" in e && i(12, v = e.clientstyling), "clientstylingurl" in e && i(13, f = e.clientstylingurl), "translationurl" in e && i(14, p = e.translationurl);
|
|
200
|
-
}, a.$$.update = () => {
|
|
201
|
-
a.$$.dirty & /*lang*/
|
|
202
|
-
1024 && l && S(), a.$$.dirty & /*lang, translationurl*/
|
|
203
|
-
17408 && l && p && F(), a.$$.dirty & /*dailyicon, dailyday, dailydescription, dailybuttontitle, dailybackground*/
|
|
204
|
-
2063 && T && n && h && s && m && z(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
205
|
-
4128 && v && y && E(), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
206
|
-
8224 && f && y && L();
|
|
207
|
-
}, [
|
|
208
|
-
m,
|
|
209
|
-
T,
|
|
210
|
-
n,
|
|
211
|
-
s,
|
|
212
|
-
w,
|
|
213
|
-
y,
|
|
214
|
-
b,
|
|
215
|
-
k,
|
|
216
|
-
C,
|
|
217
|
-
I,
|
|
218
|
-
l,
|
|
219
|
-
h,
|
|
220
|
-
v,
|
|
221
|
-
f,
|
|
222
|
-
p,
|
|
223
|
-
j,
|
|
224
|
-
d,
|
|
225
|
-
u
|
|
226
|
-
];
|
|
227
|
-
}
|
|
228
|
-
class de extends V {
|
|
229
|
-
constructor(t) {
|
|
230
|
-
super(), G(
|
|
231
|
-
this,
|
|
232
|
-
t,
|
|
233
|
-
oe,
|
|
234
|
-
re,
|
|
235
|
-
K,
|
|
236
|
-
{
|
|
237
|
-
lang: 10,
|
|
238
|
-
dailybackground: 0,
|
|
239
|
-
dailyicon: 1,
|
|
240
|
-
dailyday: 2,
|
|
241
|
-
dailydescription: 11,
|
|
242
|
-
dailybuttontitle: 3,
|
|
243
|
-
index: 4,
|
|
244
|
-
clientstyling: 12,
|
|
245
|
-
clientstylingurl: 13,
|
|
246
|
-
translationurl: 14
|
|
247
|
-
},
|
|
248
|
-
ie
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
get lang() {
|
|
252
|
-
return this.$$.ctx[10];
|
|
253
|
-
}
|
|
254
|
-
set lang(t) {
|
|
255
|
-
this.$$set({ lang: t }), g();
|
|
256
|
-
}
|
|
257
|
-
get dailybackground() {
|
|
258
|
-
return this.$$.ctx[0];
|
|
259
|
-
}
|
|
260
|
-
set dailybackground(t) {
|
|
261
|
-
this.$$set({ dailybackground: t }), g();
|
|
262
|
-
}
|
|
263
|
-
get dailyicon() {
|
|
264
|
-
return this.$$.ctx[1];
|
|
265
|
-
}
|
|
266
|
-
set dailyicon(t) {
|
|
267
|
-
this.$$set({ dailyicon: t }), g();
|
|
268
|
-
}
|
|
269
|
-
get dailyday() {
|
|
270
|
-
return this.$$.ctx[2];
|
|
271
|
-
}
|
|
272
|
-
set dailyday(t) {
|
|
273
|
-
this.$$set({ dailyday: t }), g();
|
|
274
|
-
}
|
|
275
|
-
get dailydescription() {
|
|
276
|
-
return this.$$.ctx[11];
|
|
277
|
-
}
|
|
278
|
-
set dailydescription(t) {
|
|
279
|
-
this.$$set({ dailydescription: t }), g();
|
|
280
|
-
}
|
|
281
|
-
get dailybuttontitle() {
|
|
282
|
-
return this.$$.ctx[3];
|
|
283
|
-
}
|
|
284
|
-
set dailybuttontitle(t) {
|
|
285
|
-
this.$$set({ dailybuttontitle: t }), g();
|
|
286
|
-
}
|
|
287
|
-
get index() {
|
|
288
|
-
return this.$$.ctx[4];
|
|
289
|
-
}
|
|
290
|
-
set index(t) {
|
|
291
|
-
this.$$set({ index: t }), g();
|
|
292
|
-
}
|
|
293
|
-
get clientstyling() {
|
|
294
|
-
return this.$$.ctx[12];
|
|
295
|
-
}
|
|
296
|
-
set clientstyling(t) {
|
|
297
|
-
this.$$set({ clientstyling: t }), g();
|
|
298
|
-
}
|
|
299
|
-
get clientstylingurl() {
|
|
300
|
-
return this.$$.ctx[13];
|
|
301
|
-
}
|
|
302
|
-
set clientstylingurl(t) {
|
|
303
|
-
this.$$set({ clientstylingurl: t }), g();
|
|
304
|
-
}
|
|
305
|
-
get translationurl() {
|
|
306
|
-
return this.$$.ctx[14];
|
|
307
|
-
}
|
|
308
|
-
set translationurl(t) {
|
|
309
|
-
this.$$set({ translationurl: t }), g();
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
J(de, { lang: {}, dailybackground: {}, dailyicon: {}, dailyday: {}, dailydescription: {}, dailybuttontitle: {}, index: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
313
|
-
export {
|
|
314
|
-
de as default
|
|
315
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-P6bQ-mxN.cjs");function K(i,e){t.addMessages(i,e)}const Q={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"},"en-us":{lobbyName:"Lobby",myGamesName:"My games"}};if(typeof window!="undefined"){let i=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=i(customElements.define),Promise.resolve().then(()=>require("./CasinoSlider-Zgasc58K.cjs")).then(({default:e})=>{!customElements.get("casino-slider")&&customElements.define("casino-slider",e.element)})}function ae(i){t.append_styles(i,"svelte-2g6deg",".CasinoCategoriesLoading.svelte-2g6deg{height:52px}p.svelte-2g6deg{color:var( --emw--categories-typography, var(--emw--color-white) #FFFFFF);text-align:center}.CasinoCategoriesContainer.svelte-2g6deg{background:var( --emw--categories-color-primary, var(--emw--color-primary, #D0046C))}")}function ie(i){let e,s,l,r;return{c(){e=t.element("div"),s=t.element("casino-slider"),t.set_custom_element_data(s,"lang",i[3]),t.set_custom_element_data(s,"datasource",i[2]),t.set_custom_element_data(s,"endpoint",i[1]),t.set_custom_element_data(s,"identity",j),t.set_custom_element_data(s,"favoritesnumber",i[16]),t.set_custom_element_data(s,"showsubgroups",i[8]),t.set_custom_element_data(s,"clientstyling",i[4]),t.set_custom_element_data(s,"clientstylingurl",i[5]),t.set_custom_element_data(s,"mbsource",i[12]),t.set_custom_element_data(s,"activeindex",i[0]),t.set_custom_element_data(s,"actionevent",i[6]),t.set_custom_element_data(s,"location",i[7]),t.set_custom_element_data(s,"categoriesicon",i[9]),t.set_custom_element_data(s,"lobbyiconimage",i[10]),t.set_custom_element_data(s,"mygamesiconimage",i[11]),t.attr(e,"class","CasinoCategoriesContainer svelte-2g6deg"),t.attr(e,"part","CasinoCategoriesContainer")},m(n,o){t.insert(n,e,o),t.append(e,s),l||(r=t.action_destroyer(i[17].call(null,s)),l=!0)},p(n,o){o[0]&8&&t.set_custom_element_data(s,"lang",n[3]),o[0]&4&&t.set_custom_element_data(s,"datasource",n[2]),o[0]&2&&t.set_custom_element_data(s,"endpoint",n[1]),o[0]&65536&&t.set_custom_element_data(s,"favoritesnumber",n[16]),o[0]&256&&t.set_custom_element_data(s,"showsubgroups",n[8]),o[0]&16&&t.set_custom_element_data(s,"clientstyling",n[4]),o[0]&32&&t.set_custom_element_data(s,"clientstylingurl",n[5]),o[0]&4096&&t.set_custom_element_data(s,"mbsource",n[12]),o[0]&1&&t.set_custom_element_data(s,"activeindex",n[0]),o[0]&64&&t.set_custom_element_data(s,"actionevent",n[6]),o[0]&128&&t.set_custom_element_data(s,"location",n[7]),o[0]&512&&t.set_custom_element_data(s,"categoriesicon",n[9]),o[0]&1024&&t.set_custom_element_data(s,"lobbyiconimage",n[10]),o[0]&2048&&t.set_custom_element_data(s,"mygamesiconimage",n[11])},d(n){n&&t.detach(e),l=!1,r()}}}function ne(i){let e;return{c(){e=t.element("p"),e.textContent="500 Error - Internal Server Error.",t.attr(e,"class","SearchLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function oe(i){let e;return{c(){e=t.element("div"),t.attr(e,"class","CasinoCategoriesLoading svelte-2g6deg")},m(s,l){t.insert(s,e,l)},p:t.noop,d(s){s&&t.detach(e)}}}function le(i){let e;function s(n,o){return n[13]||re||ce?oe:n[15]?ne:ie}let l=s(i),r=l(i);return{c(){e=t.element("div"),r.c()},m(n,o){t.insert(n,e,o),r.m(e,null),i[27](e)},p(n,o){l===(l=s(n))&&r?r.p(n,o):(r.d(1),r=l(n),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(n){n&&t.detach(e),r.d(),i[27](null)}}}let j="CasinoSliderData",re=!1,ce=!1;function me(i,e,s){let l;t.component_subscribe(i,t.$format,a=>s(33,l=a));let{endpoint:r=""}=e,{datasource:n=""}=e,{lang:o=""}=e,{userid:P=""}=e,{session:h=""}=e,{mostplayed:b=""}=e,{lastplayed:_="false"}=e,{favorites:w=""}=e,{clientstyling:N=""}=e,{clientstylingurl:L=""}=e,{activecategory:u=""}=e,{actionevent:F=""}=e,{sessioncheck:A=""}=e,{location:D="secondaryMenu"}=e,{showsubgroups:O="false"}=e,{filteredcategories:M=""}=e,{translationurl:C=""}=e,{categoriesicon:T=""}=e,{lobbyiconimage:R=""}=e,{mygamesiconimage:U=""}=e,{mbsource:G}=e,q,B,I,g=!0,f,y=[],d=!1,W=window.navigator.userAgent,m,Y,z=!1,S=!1;const X=()=>{fetch(C).then(c=>c.json()).then(c=>{Object.keys(c).forEach(v=>{K(v,c[v])})}).catch(c=>{console.log(c)})};Object.keys(Q).forEach(a=>{K(a,Q[a])});const Z=()=>{z==!1&&(w=="true"||b=="true"||_=="true")&&y.splice(1,0,{id:"MYGAMES",name:B,href:"",games:[]}),t.tick(),z=!0,s(26,S=!0),k()},x=()=>(r||(f="Endpoint is missing! Please provide a valid endpointURL.",s(15,d=!0),s(13,g=!1),console.error(f)),n||(f="Datasource is missing! Please provide a valid datasource.",s(15,d=!0),s(13,g=!1),console.error(f)),(!o||o.length<2)&&(f="Language is missing! Please provide a valid language (alpha2code)",s(15,d=!0),s(13,g=!1),console.error(f)),d),p=()=>{if(B=l("myGamesName"),I=l("lobbyName"),!x()){let a=new URL(`${r}/v1/casino/groups/${n}`);a.searchParams.append("datasource",n),a.searchParams.append("language",o),a.searchParams.append("platform",t.getDevice(W)),fetch(a).then(c=>c.json()).then(c=>{let v=M.split(","),te=c.items.filter(J=>{let E=!1;if(J.games.total>0&&(E=!0,M))for(let se of v)J.flags==se&&(E=!1);return E});y=[],y=y.concat(te),y.unshift({id:"LOBBY",name:I,href:"",games:[]}),s(13,g=!1),window.postMessage({type:"CategoriesLoadedForSlider"},window.location.href)},c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)}).catch(c=>{s(15,d=!0),console.error("There was an error while fetching the categories",c)})}},$=()=>{let a=u.split("$");s(0,u=a.length>2?u.split("$").slice(0,2).join("$"):u)},k=()=>{window.postMessage({type:"SliderData",identity:j,data:y},window.location.href)},H=a=>{a.data&&a.data.type=="SliderLoaded"&&j==a.data.identity&&k()};t.onMount(()=>(window.addEventListener("message",H,!1),()=>{window.emMessageBus&&q&&q.unsubscribe(),window.removeEventListener("message",H)}));function ee(a){t.binding_callbacks[a?"unshift":"push"](()=>{m=a,s(14,m)})}return i.$$set=a=>{"endpoint"in a&&s(1,r=a.endpoint),"datasource"in a&&s(2,n=a.datasource),"lang"in a&&s(3,o=a.lang),"userid"in a&&s(18,P=a.userid),"session"in a&&s(19,h=a.session),"mostplayed"in a&&s(20,b=a.mostplayed),"lastplayed"in a&&s(21,_=a.lastplayed),"favorites"in a&&s(22,w=a.favorites),"clientstyling"in a&&s(4,N=a.clientstyling),"clientstylingurl"in a&&s(5,L=a.clientstylingurl),"activecategory"in a&&s(0,u=a.activecategory),"actionevent"in a&&s(6,F=a.actionevent),"sessioncheck"in a&&s(23,A=a.sessioncheck),"location"in a&&s(7,D=a.location),"showsubgroups"in a&&s(8,O=a.showsubgroups),"filteredcategories"in a&&s(24,M=a.filteredcategories),"translationurl"in a&&s(25,C=a.translationurl),"categoriesicon"in a&&s(9,T=a.categoriesicon),"lobbyiconimage"in a&&s(10,R=a.lobbyiconimage),"mygamesiconimage"in a&&s(11,U=a.mygamesiconimage),"mbsource"in a&&s(12,G=a.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&14&&r&&n&&o&&p(),i.$$.dirty[0]&7872514&&r&&h&&(b||_||w)&&!g&&Z(),i.$$.dirty[0]&67641345&&!g&&u&&(!h||S)&&$(),i.$$.dirty[0]&33554432&&C&&X(),i.$$.dirty[0]&16400&&N&&m&&t.setClientStyling(m,N),i.$$.dirty[0]&16416&&L&&m&&t.setClientStylingURL(m,L),i.$$.dirty[0]&20480&&m&&t.setStreamStyling(m,`${G}.Style`)},s(16,Y=0),[u,r,n,o,N,L,F,D,O,T,R,U,G,g,m,d,Y,k,P,h,b,_,w,A,M,C,S,ee]}class V extends t.SvelteComponent{constructor(e){super(),t.init(this,e,me,le,t.safe_not_equal,{endpoint:1,datasource:2,lang:3,userid:18,session:19,mostplayed:20,lastplayed:21,favorites:22,clientstyling:4,clientstylingurl:5,activecategory:0,actionevent:6,sessioncheck:23,location:7,showsubgroups:8,filteredcategories:24,translationurl:25,categoriesicon:9,lobbyiconimage:10,mygamesiconimage:11,mbsource:12},ae,[-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[18]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[19]}set session(e){this.$$set({session:e}),t.flush()}get mostplayed(){return this.$$.ctx[20]}set mostplayed(e){this.$$set({mostplayed:e}),t.flush()}get lastplayed(){return this.$$.ctx[21]}set lastplayed(e){this.$$set({lastplayed:e}),t.flush()}get favorites(){return this.$$.ctx[22]}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[23]}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[24]}set filteredcategories(e){this.$$set({filteredcategories:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}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()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(V,{endpoint:{},datasource:{},lang:{},userid:{},session:{},mostplayed:{},lastplayed:{},favorites:{},clientstyling:{},clientstylingurl:{},activecategory:{},actionevent:{},sessioncheck:{},location:{},showsubgroups:{},filteredcategories:{},translationurl:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=V;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-P6bQ-mxN.cjs");function q(i,t){e.addMessages(i,t)}function ae(i){e.$locale.set(i)}const I={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..."},"en-us":{collections:"Game Collections",providers:"Game Providers",loading:"Loading, please wait ..."}};function se(i){e.append_styles(i,"svelte-1myc38z",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.CasinoCollectionsProviders{background:var(--emw--casino-color-bg, var(--emw--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(--emw--casino-typography, var(--emw--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(--emw--casino-typography, var(--emw--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(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--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 de(i){let t,l,r,n=(i[0]=="vendor"?i[11]("providers"):i[11]("collections"))+"",a,g,v,h,C,p,c=i[8]>i[9]&&W(i),u=e.ensure_array_like(i[3]),m=[];for(let s=0;s<u.length;s+=1)m[s]=E(R(i,u,s));return{c(){t=e.element("div"),l=e.element("div"),r=e.element("p"),a=e.text(n),g=e.space(),c&&c.c(),v=e.space(),h=e.element("div");for(let s=0;s<m.length;s+=1)m[s].c();e.attr(r,"class","Title"),e.attr(l,"class","CategoriesHeader"),e.attr(h,"class","CategoriesSlider"),e.add_render_callback(()=>i[28].call(h)),e.attr(t,"class",p="CasinoCollectionsProviders "+(i[10]?"Mobile":"")+" "+(i[0]==="vendor"?"Providers":"Collections"))},m(s,w){e.insert(s,t,w),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,h);for(let d=0;d<m.length;d+=1)m[d]&&m[d].m(h,null);i[27](h),C=e.add_iframe_resize_listener(h,i[28].bind(h))},p(s,w){if(w[0]&2049&&n!==(n=(s[0]=="vendor"?s[11]("providers"):s[11]("collections"))+"")&&e.set_data(a,n),s[8]>s[9]?c?c.p(s,w):(c=W(s),c.c(),c.m(l,null)):c&&(c.d(1),c=null),w[0]&49166){u=e.ensure_array_like(s[3]);let d;for(d=0;d<u.length;d+=1){const f=R(s,u,d);m[d]?m[d].p(f,w):(m[d]=E(f),m[d].c(),m[d].m(h,null))}for(;d<m.length;d+=1)m[d].d(1);m.length=u.length}w[0]&1025&&p!==(p="CasinoCollectionsProviders "+(s[10]?"Mobile":"")+" "+(s[0]==="vendor"?"Providers":"Collections"))&&e.attr(t,"class",p)},d(s){s&&e.detach(t),c&&c.d(),e.destroy_each(m,s),i[27](null),C()}}}function ce(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 W(i){let t,l,r,n,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(),n=e.element("button"),n.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,h){e.insert(v,t,h),e.append(t,l),e.append(t,r),e.append(t,n),a||(g=[e.listen(l,"click",i[23]),e.listen(n,"click",i[24])],a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,e.run_all(g)}}}function ge(i){let t,l=i[41].name+"",r;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"class","CategorySlideTitle")},m(n,a){e.insert(n,t,a),e.append(t,r)},p(n,a){a[0]&8&&l!==(l=n[41].name+"")&&e.set_data(r,l)},d(n){n&&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(n,a){e.insert(n,t,a)},p(n,a){a[0]&8&&!e.src_url_equal(t.src,l=n[41].icon)&&e.attr(t,"src",l),a[0]&8&&r!==(r=n[41].name+" icon")&&e.attr(t,"alt",r)},d(n){n&&e.detach(t)}}}function V(i){let t,l=i[44].name+"",r,n;return{c(){t=e.element("p"),r=e.text(l),e.attr(t,"title",n=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&&n!==(n=a[44].name)&&e.attr(t,"title",n)},d(a){a&&e.detach(t)}}}function D(i){let t,l,r,n,a,g,v,h;function C(){return i[25](i[44])}let p=i[2]=="true"&&V(i);return{c(){t=e.element("div"),l=e.element("img"),a=e.space(),p&&p.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",n=i[44].name),e.attr(t,"class","CategorySlideGames")},m(c,u){e.insert(c,t,u),e.append(t,l),e.append(t,a),p&&p.m(t,null),e.append(t,g),v||(h=e.listen(l,"click",e.stop_propagation(C)),v=!0)},p(c,u){i=c,u[0]&8&&!e.src_url_equal(l.src,r=i[44].defaultThumbnail)&&e.attr(l,"src",r),u[0]&8&&n!==(n=i[44].name)&&e.attr(l,"alt",n),i[2]=="true"?p?p.p(i,u):(p=V(i),p.c(),p.m(t,g)):p&&(p.d(1),p=null)},d(c){c&&e.detach(t),p&&p.d(),v=!1,h()}}}function E(i){let t,l,r,n,a,g,v,h,C;function p(d,f){if(d[1]=="logo")return ue;if(d[1]=="title")return ge}let c=p(i),u=c&&c(i),m=e.ensure_array_like(i[41].games),s=[];for(let d=0;d<m.length;d+=1)s[d]=D(U(i,m,d));function w(){return i[26](i[41])}return{c(){var d,f;t=e.element("div"),l=e.element("div"),r=e.element("div"),u&&u.c(),n=e.space(),a=e.element("div");for(let _=0;_<s.length;_+=1)s[_].c();v=e.space(),e.attr(r,"class","CategorySlideTopContainer"),e.attr(a,"class","CategorySlideGameContainer"),e.attr(l,"class",g="CategorySlide "+(((d=i[41])==null?void 0:d.flag[0])=="vendor"?"CategorySlideNoHighlight":"")),e.set_style(l,"background-image","url("+((f=i[41])==null?void 0:f.background)+")"),e.set_style(l,"background-size","cover"),e.attr(t,"class","CategoriesSliderWrapper Animation")},m(d,f){e.insert(d,t,f),e.append(t,l),e.append(l,r),u&&u.m(r,null),e.append(l,n),e.append(l,a);for(let _=0;_<s.length;_+=1)s[_]&&s[_].m(a,null);e.append(t,v),h||(C=e.listen(l,"click",w),h=!0)},p(d,f){var _,k;if(i=d,c===(c=p(i))&&u?u.p(i,f):(u&&u.d(1),u=c&&c(i),u&&(u.c(),u.m(r,null))),f[0]&16396){m=e.ensure_array_like(i[41].games);let b;for(b=0;b<m.length;b+=1){const L=U(i,m,b);s[b]?s[b].p(L,f):(s[b]=D(L),s[b].c(),s[b].m(a,null))}for(;b<s.length;b+=1)s[b].d(1);s.length=m.length}f[0]&8&&g!==(g="CategorySlide "+(((_=i[41])==null?void 0:_.flag[0])=="vendor"?"CategorySlideNoHighlight":""))&&e.attr(l,"class",g),f[0]&8&&e.set_style(l,"background-image","url("+((k=i[41])==null?void 0:k.background)+")")},d(d){d&&e.detach(t),u&&u.d(),e.destroy_each(s,d),h=!1,C()}}}function pe(i){let t;function l(a,g){return a[7]?ce:de}let r=l(i),n=r(i);return{c(){t=e.element("div"),n.c()},m(a,g){e.insert(a,t,g),n.m(t,null),i[29](t)},p(a,g){r===(r=l(a))&&n?n.p(a,g):(n.d(1),n=r(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[29](null)}}}function me(i,t,l){let r;e.component_subscribe(i,e.$format,o=>l(11,r=o));let{endpoint:n=""}=t,{datasource:a=""}=t,{lang:g=""}=t,{type:v=""}=t,{titletype:h=""}=t,{clientstyling:C=""}=t,{clientstylingurl:p=""}=t,{translationurl:c=""}=t,{collectionprovidersgamenames:u=""}=t,{mbsource:m}=t,s=[],w=!0,d,f=0,_=0,k=0,b,L,P,Z=window.navigator.userAgent,j,M=0;const J=()=>{fetch(c).then(y=>y.json()).then(y=>{Object.keys(y).forEach(G=>{q(G,y[G])})}).catch(y=>{console.log(y)})};Object.keys(I).forEach(o=>{q(o,I[o])});const X=()=>{const o=new URL(`${n}/v2/casino/groups/${a}`);o.searchParams.append("language",g),o.searchParams.append("expand","games"),fetch(o.href).then(y=>y.json()).then(y=>{l(7,w=!1);let G=y.items.filter(S=>S.flags==v);l(3,s=G.map(S=>{var B,A,N;return{id:S.id,name:S.name,icon:S.icon?S.icon:(N=(A=(B=S.vendors)==null?void 0:B.items[0])==null?void 0:A.subVendors[0])==null?void 0:N.logo,games:S.games.items.slice(0,4).map(re=>re),background:S.background,flag:S.flags}})),l(8,_=s.length)})},x=o=>{L=[...d.children],L.forEach((y,G)=>{y.style.transform=`translateX(${100*(o?G-o:G)}%)`}),b=L[0].getBoundingClientRect().width,Y()},Y=()=>{l(9,k=Math.floor(M/b))},T=()=>{x(f)},F=()=>{f===0?f=_-k:f-k<-1?f=0:f--,T()},z=()=>{f===_-k?f=0:_-k<f+1?f=_-k:f++,T()},O=(o,y,G,S)=>{window.postMessage({type:"OpenCollectionsProvidersGame",gameId:o,launchUrl:y,gameName:G,subVendor:S},window.location.href),typeof gtag=="function"&>ag("event","OpenGame",{context:"CollectionsProviders",gameName:`${G}`})},H=o=>{window.postMessage({type:"OpenCollectionsProvidersCategory",categoryId:o},window.location.href)},Q=()=>{ae(g)};e.onMount(()=>(l(10,j=e.isMobile(Z)),()=>{}));const $=()=>F(),ee=()=>z(),te=o=>O(o.gameId,o.launchUrl,o.name,o.subVendor),ie=o=>H(o.id);function le(o){e.binding_callbacks[o?"unshift":"push"](()=>{d=o,l(4,d)})}function ne(){M=this.clientWidth,l(6,M)}function oe(o){e.binding_callbacks[o?"unshift":"push"](()=>{P=o,l(5,P)})}return i.$$set=o=>{"endpoint"in o&&l(16,n=o.endpoint),"datasource"in o&&l(17,a=o.datasource),"lang"in o&&l(18,g=o.lang),"type"in o&&l(0,v=o.type),"titletype"in o&&l(1,h=o.titletype),"clientstyling"in o&&l(19,C=o.clientstyling),"clientstylingurl"in o&&l(20,p=o.clientstylingurl),"translationurl"in o&&l(21,c=o.translationurl),"collectionprovidersgamenames"in o&&l(2,u=o.collectionprovidersgamenames),"mbsource"in o&&l(22,m=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&458752&&n&&a&&g&&X(),i.$$.dirty[0]&88&&M&&s&&d&&x(),i.$$.dirty[0]&262144&&g&&Q(),i.$$.dirty[0]&524320&&C&&P&&e.setClientStyling(P,C),i.$$.dirty[0]&1048608&&p&&P&&e.setClientStylingURL(P,p),i.$$.dirty[0]&4194336&&P&&e.setStreamStyling(P,`${m}.Style`),i.$$.dirty[0]&2097152&&c&&J()},[v,h,u,s,d,P,M,w,_,k,j,r,F,z,O,H,n,a,g,C,p,c,m,$,ee,te,ie,le,ne,oe]}class K extends e.SvelteComponent{constructor(t){super(),e.init(this,t,me,pe,e.safe_not_equal,{endpoint:16,datasource:17,lang:18,type:0,titletype:1,clientstyling:19,clientstylingurl:20,translationurl:21,collectionprovidersgamenames:2,mbsource:22},se,[-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()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},datasource:{},lang:{},type:{},titletype:{},clientstyling:{},clientstylingurl:{},translationurl:{},collectionprovidersgamenames:{},mbsource:{}},[],[],!0);exports.default=K;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-P6bQ-mxN.cjs");if(typeof window!="undefined"){let a=function(e){return function(...s){try{return e.apply(this,s)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGamesCategorySection-X0aDh13K.cjs")).then(({default:e})=>{!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",e.element)})}function L({withLocale:a,translations:e}){t.$locale.subscribe(s=>{s==null&&(t.$dictionary.set(e),t.$locale.set(a))})}function O(a){t.append_styles(a,"svelte-1rh2qpg",".CasinoFavoritesSectionContainer{background:var(--emw--casino-color-bg, var(--emw--color-background, #07072A));color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}")}function F(a){let e;return{c(){e=t.element("casino-games-category-section"),t.set_custom_element_data(e,"session",a[4]),t.set_custom_element_data(e,"userid",a[5]),t.set_custom_element_data(e,"endpoint",a[0]),t.set_custom_element_data(e,"datasource",a[1]),t.set_custom_element_data(e,"lang",a[3]),t.set_custom_element_data(e,"currency",a[2]),t.set_custom_element_data(e,"favorites",a[14]),t.set_custom_element_data(e,"fetchviaevent",a[16]),t.set_custom_element_data(e,"mbsource",a[17]),t.set_custom_element_data(e,"categoryid","FAVORITES"),t.set_custom_element_data(e,"class","CategoryContainer"),t.set_custom_element_data(e,"showgamename",a[11]),t.set_custom_element_data(e,"clientstyling",a[6]),t.set_custom_element_data(e,"clientstylingurl",a[7]),t.set_custom_element_data(e,"livecasino",a[8]),t.set_custom_element_data(e,"visiblegames",a[13]),t.set_custom_element_data(e,"gamepagemodalurl",a[12]),t.set_custom_element_data(e,"integratedgameframedesktop",a[10]),t.set_custom_element_data(e,"integratedgameframemobile",a[9]),t.set_custom_element_data(e,"casinomygames",a[15])},m(s,i){t.insert(s,e,i)},p(s,i){i&16&&t.set_custom_element_data(e,"session",s[4]),i&32&&t.set_custom_element_data(e,"userid",s[5]),i&1&&t.set_custom_element_data(e,"endpoint",s[0]),i&2&&t.set_custom_element_data(e,"datasource",s[1]),i&8&&t.set_custom_element_data(e,"lang",s[3]),i&4&&t.set_custom_element_data(e,"currency",s[2]),i&16384&&t.set_custom_element_data(e,"favorites",s[14]),i&65536&&t.set_custom_element_data(e,"fetchviaevent",s[16]),i&131072&&t.set_custom_element_data(e,"mbsource",s[17]),i&2048&&t.set_custom_element_data(e,"showgamename",s[11]),i&64&&t.set_custom_element_data(e,"clientstyling",s[6]),i&128&&t.set_custom_element_data(e,"clientstylingurl",s[7]),i&256&&t.set_custom_element_data(e,"livecasino",s[8]),i&8192&&t.set_custom_element_data(e,"visiblegames",s[13]),i&4096&&t.set_custom_element_data(e,"gamepagemodalurl",s[12]),i&1024&&t.set_custom_element_data(e,"integratedgameframedesktop",s[10]),i&512&&t.set_custom_element_data(e,"integratedgameframemobile",s[9]),i&32768&&t.set_custom_element_data(e,"casinomygames",s[15])},d(s){s&&t.detach(e)}}}function A(a){let e,s=a[4]&&F(a);return{c(){e=t.element("div"),s&&s.c(),t.attr(e,"class","CasinoFavoritesSectionContainer")},m(i,l){t.insert(i,e,l),s&&s.m(e,null),a[19](e)},p(i,[l]){i[4]?s?s.p(i,l):(s=F(i),s.c(),s.m(e,null)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),s&&s.d(),a[19](null)}}}function D(a,e,s){let{endpoint:i=""}=e,{datasource:l=""}=e,{currency:g=""}=e,{lang:r=""}=e,{session:_=""}=e,{userid:f=""}=e,{clientstyling:o=""}=e,{clientstylingurl:u=""}=e,{livecasino:d="false"}=e,{integratedgameframemobile:h="false"}=e,{integratedgameframedesktop:y="false"}=e,{showgamename:b=""}=e,{gamepagemodalurl:v="false"}=e,{visiblegames:w=""}=e,{favorites:k=""}=e,{casinomygames:C="false"}=e,{fetchviaevent:S="true"}=e,{mbsource:c}=e,m;L({withLocale:"en",translations:{}});function q(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(18,m)})}return a.$$set=n=>{"endpoint"in n&&s(0,i=n.endpoint),"datasource"in n&&s(1,l=n.datasource),"currency"in n&&s(2,g=n.currency),"lang"in n&&s(3,r=n.lang),"session"in n&&s(4,_=n.session),"userid"in n&&s(5,f=n.userid),"clientstyling"in n&&s(6,o=n.clientstyling),"clientstylingurl"in n&&s(7,u=n.clientstylingurl),"livecasino"in n&&s(8,d=n.livecasino),"integratedgameframemobile"in n&&s(9,h=n.integratedgameframemobile),"integratedgameframedesktop"in n&&s(10,y=n.integratedgameframedesktop),"showgamename"in n&&s(11,b=n.showgamename),"gamepagemodalurl"in n&&s(12,v=n.gamepagemodalurl),"visiblegames"in n&&s(13,w=n.visiblegames),"favorites"in n&&s(14,k=n.favorites),"casinomygames"in n&&s(15,C=n.casinomygames),"fetchviaevent"in n&&s(16,S=n.fetchviaevent),"mbsource"in n&&s(17,c=n.mbsource)},a.$$.update=()=>{a.$$.dirty&262208&&o&&m&&t.setClientStyling(m,o),a.$$.dirty&262272&&u&&m&&t.setClientStylingURL(m,u),a.$$.dirty&393216&&m&&t.setStreamStyling(m,`${c}.Style`)},[i,l,g,r,_,f,o,u,d,h,y,b,v,w,k,C,S,c,m,q]}class E extends t.SvelteComponent{constructor(e){super(),t.init(this,e,D,A,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,showgamename:11,gamepagemodalurl:12,visiblegames:13,favorites:14,casinomygames:15,fetchviaevent:16,mbsource:17},O)}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 showgamename(){return this.$$.ctx[11]}set showgamename(e){this.$$set({showgamename:e}),t.flush()}get gamepagemodalurl(){return this.$$.ctx[12]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl: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 casinomygames(){return this.$$.ctx[15]}set casinomygames(e){this.$$set({casinomygames:e}),t.flush()}get fetchviaevent(){return this.$$.ctx[16]}set fetchviaevent(e){this.$$set({fetchviaevent:e}),t.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(E,{endpoint:{},datasource:{},currency:{},lang:{},session:{},userid:{},clientstyling:{},clientstylingurl:{},livecasino:{},integratedgameframemobile:{},integratedgameframedesktop:{},showgamename:{},gamepagemodalurl:{},visiblegames:{},favorites:{},casinomygames:{},fetchviaevent:{},mbsource:{}},[],[],!0);exports.default=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-P6bQ-mxN.cjs");function Y({withLocale:i,translations:t}){e.$locale.subscribe(l=>{l==null&&(e.$dictionary.set(t),e.$locale.set(i))})}function Z(i,t){e.addMessages(i,t)}const G={en:{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"},zh:{providers:"Providers:",filterby:"Filter by",all:"all",clear:"Clear all"},de:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},it:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},fr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},es:{providers:"Proveedores:",filterby:"Filtrar Por:",all:"Todos",clear:"Limpiar todos"},tr:{providers:"Sağlayıcılar:",filterby:"Filtrele:",all:"Hepsi",clear:"Tümünü Temizle"},ru:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},ro:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},hr:{providers:"Brendovi igara",filterby:"Filtrirati po:",all:"Sve",clear:"Očisti sve"},hu:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},pt:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sl:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},sr:{providers:"Providers:",filterby:"Filter by:",all:"all",clear:"Clear all"},"pt-br":{providers:"Provedores:",filterby:"Filtrar por",all:"Tudo",clear:"Apagar tudo"},"es-mx":{providers:"Proveedores:",filterby:"Filtrar por",all:"Todo",clear:"Borrar todo"},"en-us":{providers:"Providers:",filterby:"Filter by:",all:"All",clear:"Clear all"}};function $(i){e.append_styles(i,"svelte-1v7rv6n",':root{--min-height:50px}.SearchLoading{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.FilterContainer{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF));position:relative;z-index:16}.FilterSelector{background-color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;padding:10px 16px;border-radius:5px;justify-content:space-between;align-items:center;max-width:fit-content;cursor:pointer}.FilterSelector.FilterSelectorOpen{border-radius:5px 5px 0 0}.FilterMainArea{display:flex;align-items:center}.FilterMainArea svg{margin-right:16px}.FilterName{font-size:11px;line-height:12px;color:var(--emw--color-gray-100, #E6E6E6);text-transform:uppercase}.FilterTextContainer{display:flex;flex-direction:column}.FilterValueContainer{font-size:14px;line-height:16px;font-weight:300}.TriangleInactive{display:block;color:currentColor;margin:0 0 0 15px;transition:all 0.5s}.TriangleActive{transform:rotate(180deg);position:relative;top:2px}.FilterDropdownContainer{padding:0;background:rgb(88, 88, 107);background:linear-gradient(180deg, rgba(88, 88, 107, 0.9) 0%, rgba(7, 7, 42, 0.9) 95%);display:flex;flex-direction:column;align-items:center;transition:max-height 0.15s ease-out;max-height:0;border-radius:0 0 5px 5px;position:absolute;top:48px;margin-bottom:40px;overflow:hidden;margin:0}.FilterDropdownContainer.FilterOpen{width:100%;max-height:fit-content;transition:max-height 0.25s ease-in;padding-top:20px}.FilterDropdown{width:100%;max-height:300px;display:flex;flex-direction:column;gap:10px;margin:0;padding-inline-start:0;overflow:scroll;list-style:none;-ms-overflow-style:none;scrollbar-width:none}.FilterDropdown::-webkit-scrollbar{display:none}.FilterItem label{font-size:14px;font-weight:300;cursor:pointer;display:flex;align-items:center;justify-content:flex-start;padding:0 15px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.FilterItem input{cursor:pointer;margin-right:10px}.FilterItem:hover input~.FiltersCheckmark{background-color:transparent;border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem input:checked~.FiltersCheckmark{background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C))}.FilterItem .FiltersCheckmark{transition:all 0.05s ease-in;margin-right:15px}.FilterItem .FiltersCheckmark:after{content:"";position:absolute;left:9px;display:none}.FilterItem input:checked~.FiltersCheckmark:after{display:block}.FilterItem .FiltersCheckmark:after{left:8px;top:4px;width:5px;height:10px;border:1px solid solid var(--emw--color-white, #FFFFFF);border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0}.FilterLabel input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.FilterLabel .FiltersCheckmark{border-radius:8px;position:relative;height:22px;width:22px;min-width:22px;background-color:transparent;border:1px solid var(--emw--color-white, #FFFFFF)}.FilterLabel .FilterItemLabel{width:100%;display:flex;justify-content:space-between;overflow:hidden}.FilterLabel .FilterItemLabel span.VendorName{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.FilterItemWithLogos label{height:70px;display:flex;justify-content:space-evenly;align-items:center}.FilterItemWithLogos label img{width:70px}.FilterLabel input:checked+span{font-weight:600}.FilterCounter{display:inline-flex;margin-left:10px;min-width:17px}.ClearFilters{margin:20px auto;border:0;color:#fff;background-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));font-size:18px;padding:10px 50px;border-radius:5px;cursor:pointer;transition:all 0.1s ease-in;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ClearFilters:disabled{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);pointer-events:none;cursor:not-allowed}@media only screen and (max-width: 768px){.FilterSelector{max-width:initial}.FilterDropdownContainer{width:100%;margin-bottom:20px}.FilterDropdown{margin-block-start:0;gap:14px}.FilterItemWithLogos label{justify-content:center}.FilerContainerSplit .FilterSelector{padding:7px}.FilerContainerSplit .FilterSelector .FilterCounter{margin-left:0}.FilerContainerSplit .FilterMainArea svg{margin:0 10px}.FilerContainerSplit .FilterDropdown{padding:0 5px;box-sizing:border-box}.FilerContainerSplit .FilterDropdownContainer{top:42px}.FilerContainerSplit .ClearFilters{padding:8px 20px;font-size:15px}.FilterLabel .FiltersCheckmark{margin-right:15px}.FilterItem.FilterItemWithLogos{display:flex;align-items:center;justify-content:center}.FilerContainerSplit .FilterItemWithLogos .FiltersCheckmark{margin:0 20px 0 0}.FilerContainerSplit .FilterItem label{padding:0;width:calc(100% - 10px);font-size:12px}.FilterItem label>*{pointer-events:none}}@media(max-width: 480px){.FilerContainerSplit .FilterSelector{min-height:var(--min-height)}.FilerContainerSplit .FilterDropdownContainer{top:var(--min-height)}.FilterName,.FilterValueContainer{overflow:hidden;max-width:100%;font-size:12px;text-overflow:ellipsis;width:fit-content}.FilterLabel .FiltersCheckmark{margin-right:5px}.FilterItem label{padding:0;font-size:11px;overflow:hidden;text-overflow:ellipsis;width:unset}.FilterItemLabel span:first-child{display:inline-block;overflow:hidden;text-overflow:ellipsis;max-width:60%}}')}function K(i,t,l){const a=i.slice();return a[36]=t[l],a[37]=t,a[38]=l,a}function ee(i){let t,l,a,n,s,g,b,y,h=i[11]("filterby")+"",u,v,F,P,k=i[11]("providers")+"",_,x,f,c,m,S,T,A,w,I,O,J,L,E=i[11]("clear")+"",j,M,z,N,B,q;function H(o,p){return o[7]?re:le}let V=H(i),C=V(i),D=e.ensure_array_like(i[5]),r=[];for(let o=0;o<D.length;o+=1)r[o]=Q(K(i,D,o));return{c(){t=e.element("div"),l=e.element("div"),a=e.element("div"),n=e.svg_element("svg"),s=e.svg_element("path"),g=e.space(),b=e.element("div"),y=e.element("span"),u=e.text(h),v=e.space(),F=e.element("div"),P=e.element("span"),_=e.text(k),x=e.space(),C.c(),f=e.space(),c=e.element("span"),m=e.svg_element("svg"),S=e.svg_element("path"),w=e.space(),I=e.element("div"),O=e.element("ul");for(let o=0;o<r.length;o+=1)r[o].c();J=e.space(),L=e.element("button"),j=e.text(E),e.attr(s,"id","noun_filter_736223"),e.attr(s,"d","M12.2,22.2a1.018,1.018,0,0,1-.391-.091.939.939,0,0,1-.533-.857v-6.2L5.267,8.9A.95.95,0,0,1,5,8.225V7.149A.93.93,0,0,1,5.924,6.2H20.076A.93.93,0,0,1,21,7.149V8.225a.95.95,0,0,1-.267.675l-6.009,6.148V19.81a.981.981,0,0,1-.32.712l-1.6,1.423A.9.9,0,0,1,12.2,22.2ZM6,8.189,12,14.355a.95.95,0,0,1,.267.675v6.039l1.44-1.277v-4.78a.95.95,0,0,1,.267-.675L19.987,8.17V7.2H6Z"),e.attr(s,"transform","translate(-5 -6.2)"),e.attr(s,"fill","#fff"),e.attr(n,"xmlns","http://www.w3.org/2000/svg"),e.attr(n,"width","16"),e.attr(n,"height","16"),e.attr(n,"viewBox","0 0 16 16"),e.attr(y,"class","FilterName"),e.attr(F,"class","FilterValueContainer"),e.attr(b,"class","FilterTextContainer"),e.attr(a,"class","FilterMainArea"),e.attr(S,"id","arrow"),e.attr(S,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(S,"transform","translate(-274.511 -441.088)"),e.attr(S,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(c,"class",T="TriangleInactive "+(i[4]?"TriangleActive":"")),e.attr(l,"class",A="FilterSelector "+(i[4]?"FilterSelectorOpen":"")),e.attr(O,"class","FilterDropdown"),e.attr(L,"class","ClearFilters"),L.disabled=M=i[7]&&i[6].length!=i[5].length,e.attr(I,"class",z="FilterDropdownContainer "+(i[4]?"FilterOpen":"")),e.attr(t,"class",N="FilterContainer "+(i[0]=="true"&&i[1]=="true"?"FilerContainerSplit":""))},m(o,p){e.insert(o,t,p),e.append(t,l),e.append(l,a),e.append(a,n),e.append(n,s),e.append(a,g),e.append(a,b),e.append(b,y),e.append(y,u),e.append(b,v),e.append(b,F),e.append(F,P),e.append(P,_),e.append(F,x),C.m(F,null),e.append(l,f),e.append(l,c),e.append(c,m),e.append(m,S),e.append(t,w),e.append(t,I),e.append(I,O);for(let d=0;d<r.length;d+=1)r[d]&&r[d].m(O,null);e.append(I,J),e.append(I,L),e.append(L,j),B||(q=[e.listen(l,"click",i[23]),e.listen(L,"click",i[26])],B=!0)},p(o,p){if(p[0]&2048&&h!==(h=o[11]("filterby")+"")&&e.set_data(u,h),p[0]&2048&&k!==(k=o[11]("providers")+"")&&e.set_data(_,k),V===(V=H(o))&&C?C.p(o,p):(C.d(1),C=V(o),C&&(C.c(),C.m(F,null))),p[0]&16&&T!==(T="TriangleInactive "+(o[4]?"TriangleActive":""))&&e.attr(c,"class",T),p[0]&16&&A!==(A="FilterSelector "+(o[4]?"FilterSelectorOpen":""))&&e.attr(l,"class",A),p[0]&8228){D=e.ensure_array_like(o[5]);let d;for(d=0;d<D.length;d+=1){const W=K(o,D,d);r[d]?r[d].p(W,p):(r[d]=Q(W),r[d].c(),r[d].m(O,null))}for(;d<r.length;d+=1)r[d].d(1);r.length=D.length}p[0]&2048&&E!==(E=o[11]("clear")+"")&&e.set_data(j,E),p[0]&224&&M!==(M=o[7]&&o[6].length!=o[5].length)&&(L.disabled=M),p[0]&16&&z!==(z="FilterDropdownContainer "+(o[4]?"FilterOpen":""))&&e.attr(I,"class",z),p[0]&3&&N!==(N="FilterContainer "+(o[0]=="true"&&o[1]=="true"?"FilerContainerSplit":""))&&e.attr(t,"class",N)},d(o){o&&e.detach(t),C.d(),e.destroy_each(r,o),B=!1,e.run_all(q)}}}function te(i){let t,l=i[11]("500")+"",a;return{c(){t=e.element("p"),a=e.text(l),e.attr(t,"class","SearchLoading")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("500")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function le(i){let t,l;return{c(){t=e.element("span"),l=e.text(i[8]),e.attr(t,"class","FilterCounter")},m(a,n){e.insert(a,t,n),e.append(t,l)},p(a,n){n[0]&256&&e.set_data(l,a[8])},d(a){a&&e.detach(t)}}}function re(i){let t,l=i[11]("all")+"",a;return{c(){t=e.element("span"),a=e.text(l),e.attr(t,"class","FilterCounter")},m(n,s){e.insert(n,t,s),e.append(t,a)},p(n,s){s[0]&2048&&l!==(l=n[11]("all")+"")&&e.set_data(a,l)},d(n){n&&e.detach(t)}}}function ie(i){let t,l;return{c(){t=e.element("img"),e.src_url_equal(t.src,l=i[36].logo)||e.attr(t,"src",l),e.attr(t,"alt","vendor logo")},m(a,n){e.insert(a,t,n)},p(a,n){n[0]&32&&!e.src_url_equal(t.src,l=a[36].logo)&&e.attr(t,"src",l)},d(a){a&&e.detach(t)}}}function ae(i){let t,l,a=i[36].name+"",n,s,g,b,y=i[36].games.count+"",h,u;return{c(){t=e.element("div"),l=e.element("span"),n=e.text(a),s=e.space(),g=e.element("span"),b=e.text("("),h=e.text(y),u=e.text(")"),e.attr(l,"class","VendorName"),e.attr(t,"class","FilterItemLabel")},m(v,F){e.insert(v,t,F),e.append(t,l),e.append(l,n),e.append(t,s),e.append(t,g),e.append(g,b),e.append(g,h),e.append(g,u)},p(v,F){F[0]&32&&a!==(a=v[36].name+"")&&e.set_data(n,a),F[0]&32&&y!==(y=v[36].games.count+"")&&e.set_data(h,y)},d(v){v&&e.detach(t)}}}function Q(i){let t,l,a,n,s,g,b,y,h,u,v,F;function P(){i[24].call(a,i[37],i[38])}function k(){return i[25](i[36])}function _(c,m){if(c[2]==="false")return ae;if(c[2]==="true")return ie}let x=_(i),f=x&&x(i);return{c(){t=e.element("li"),l=e.element("label"),a=e.element("input"),s=e.space(),g=e.element("span"),b=e.space(),f&&f.c(),y=e.space(),e.attr(a,"type","checkbox"),e.attr(a,"name","checkbox"),a.__value=n=i[36].name,e.set_input_value(a,a.__value),e.attr(g,"class","FiltersCheckmark"),e.attr(l,"class","FilterLabel"),e.attr(t,"class",h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":"")),t.value=u=i[36].name},m(c,m){e.insert(c,t,m),e.append(t,l),e.append(l,a),a.checked=i[36].isFilterSelected,e.append(l,s),e.append(l,g),e.append(l,b),f&&f.m(l,null),e.append(t,y),v||(F=[e.listen(a,"change",P),e.listen(a,"click",k)],v=!0)},p(c,m){i=c,m[0]&32&&n!==(n=i[36].name)&&(a.__value=n,e.set_input_value(a,a.__value)),m[0]&32&&(a.checked=i[36].isFilterSelected),x===(x=_(i))&&f?f.p(i,m):(f&&f.d(1),f=x&&x(i),f&&(f.c(),f.m(l,null))),m[0]&4&&h!==(h="FilterItem "+(i[2]==="true"?"FilterItemWithLogos":""))&&e.attr(t,"class",h),m[0]&32&&u!==(u=i[36].name)&&(t.value=u)},d(c){c&&e.detach(t),f&&f.d(),v=!1,e.run_all(F)}}}function ne(i){let t;function l(s,g){if(s[10])return te;if(!s[9])return ee}let a=l(i),n=a&&a(i);return{c(){t=e.element("div"),n&&n.c()},m(s,g){e.insert(s,t,g),n&&n.m(t,null),i[27](t)},p(s,g){a===(a=l(s))&&n?n.p(s,g):(n&&n.d(1),n=a&&a(s),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(s){s&&e.detach(t),n&&n.d(),i[27](null)}}}function oe(i,t,l){let a;e.component_subscribe(i,e.$format,r=>l(11,a=r));let{endpoint:n=""}=t,{datasource:s=""}=t,{lang:g=""}=t,{translationurl:b=""}=t,{clientstyling:y=""}=t,{clientstylingurl:h=""}=t,{categoryid:u=""}=t,{addfilterselector:v="false"}=t,{addsortingselector:F="false"}=t,{filterbylogo:P="false"}=t,{mbsource:k}=t,_=!1,x=window.navigator.userAgent,f=[],c=[],m={},S=!1,T=0,A=!0,w,I=!1,O;Y({withLocale:"en",translations:{}});const J=()=>{fetch(b).then(o=>o.json()).then(o=>{Object.keys(o).forEach(p=>{Z(p,o[p])})}).catch(o=>{console.log(o)})};Object.keys(G).forEach(r=>{Z(r,G[r])}),m[u]&&(m={[u]:[]});const L=()=>{l(4,_=!_),window.postMessage({type:"FilterOpened"},window.location.href)},E=r=>(l(9,A=!0),new Promise((o,p)=>{fetch(r).then(d=>d.json()).then(d=>{d=d.items,o(d.items),l(6,c=[]);let W=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));d.forEach(R=>{var U;W||(W={currentCategoryId:[]}),((U=W[u])==null?void 0:U.indexOf(R.id))>=0?(R.isFilterSelected=!0,c.push(R)):R.isFilterSelected=!1}),l(5,f=d),M()}).catch(d=>{console.error(d),l(10,I=!0),p(d)}).finally(()=>{l(9,A=!1)})})),j=r=>{let o=localStorage.getItem("vendorFiltersByCategory");r.isFilterSelected=!r.isFilterSelected,!c.length||c.filter(p=>p.name===r.name).length==0?c.push(r):l(6,c=c.filter(p=>p.name!==r.name)),o==null?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(p=>p.id)})):(o=JSON.parse(o),o[u]=c.map(p=>p.id),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(o))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),M()},M=()=>{l(7,S=c.length===f.length||c.length==0),l(8,T=c.length)},z=()=>{const r=new URL(`${n}/v1/casino/vendors`);l(4,_=!1),r.searchParams.append("fields","id,name,logo,subVendors,games"),r.searchParams.append("language",g),r.searchParams.append("datasource",s),r.searchParams.append("platform",e.getDevice(x)),(u.match(/\$/g)||[]).length>1?(r.searchParams.append("filter",`games(subGroups=${u})`),r.searchParams.append("subVendors",`games(subGroups=${u})`)):r.searchParams.append("filter",`games(groups=${u})`),E(r)},N=()=>{l(6,c=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(m={[u]:c.map(r=>r.id)})),f.forEach(r=>r.isFilterSelected=!1),l(5,f),window.postMessage({type:"ApplyFilters"},window.location.href),l(7,S=!0),l(4,_=!1)},B=r=>{r.data.type=="SortingOpened"&&l(4,_=!1)};e.onMount(()=>(window.addEventListener("message",B,!1),()=>{window.emMessageBus!=null&&O&&O.unsubscribe(),window.removeEventListener("message",B)}));const q=()=>L();function H(r,o){r[o].isFilterSelected=this.checked,l(5,f)}const V=r=>j(r),C=()=>N();function D(r){e.binding_callbacks[r?"unshift":"push"](()=>{w=r,l(3,w)})}return i.$$set=r=>{"endpoint"in r&&l(15,n=r.endpoint),"datasource"in r&&l(16,s=r.datasource),"lang"in r&&l(17,g=r.lang),"translationurl"in r&&l(18,b=r.translationurl),"clientstyling"in r&&l(19,y=r.clientstyling),"clientstylingurl"in r&&l(20,h=r.clientstylingurl),"categoryid"in r&&l(21,u=r.categoryid),"addfilterselector"in r&&l(0,v=r.addfilterselector),"addsortingselector"in r&&l(1,F=r.addsortingselector),"filterbylogo"in r&&l(2,P=r.filterbylogo),"mbsource"in r&&l(22,k=r.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2195460&&n&&s&&u&&P&&z(),i.$$.dirty[0]&524296&&y&&w&&e.setClientStyling(w,y),i.$$.dirty[0]&1048584&&h&&w&&e.setClientStylingURL(w,h),i.$$.dirty[0]&4194312&&w&&e.setStreamStyling(w,`${k}.Style`),i.$$.dirty[0]&262144&&b&&J()},[v,F,P,w,_,f,c,S,T,A,I,a,L,j,N,n,s,g,b,y,h,u,k,q,H,V,C,D]}class X extends e.SvelteComponent{constructor(t){super(),e.init(this,t,oe,ne,e.safe_not_equal,{endpoint:15,datasource:16,lang:17,translationurl:18,clientstyling:19,clientstylingurl:20,categoryid:21,addfilterselector:0,addsortingselector:1,filterbylogo:2,mbsource:22},$,[-1,-1])}get endpoint(){return this.$$.ctx[15]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[16]}set datasource(t){this.$$set({datasource:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl: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 categoryid(){return this.$$.ctx[21]}set categoryid(t){this.$$set({categoryid:t}),e.flush()}get addfilterselector(){return this.$$.ctx[0]}set addfilterselector(t){this.$$set({addfilterselector:t}),e.flush()}get addsortingselector(){return this.$$.ctx[1]}set addsortingselector(t){this.$$set({addsortingselector:t}),e.flush()}get filterbylogo(){return this.$$.ctx[2]}set filterbylogo(t){this.$$set({filterbylogo:t}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(X,{endpoint:{},datasource:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},categoryid:{},addfilterselector:{},addsortingselector:{},filterbylogo:{},mbsource:{}},[],[],!0);exports.default=X;
|