@everymatrix/casino-lobby 1.74.2 → 1.74.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-W89MyM3R.js → CasinoCalendar-DG7wVbWu.js} +991 -1005
- package/components/{CasinoCalendar-D4jWXhPt.js → CasinoCalendar-JGC8iAmb.js} +777 -791
- package/components/CasinoCalendar-Lny8nE88.cjs +19 -0
- package/components/CasinoCalendarDailyDetails-B1QlX7pP.cjs +1 -0
- package/components/{CasinoCalendarDailyDetails-ZqdthZ8T.js → CasinoCalendarDailyDetails-D2Mvhg3d.js} +75 -75
- package/components/{CasinoCalendarDailyDetails-B7a0AWc5.js → CasinoCalendarDailyDetails-DtXvJMxo.js} +75 -75
- package/components/{CasinoCalendarDailyItem-C_KcFF9v.js → CasinoCalendarDailyItem-78PMeiVD.js} +6 -6
- package/components/{CasinoCalendarDailyItem-BofIs4hH.cjs → CasinoCalendarDailyItem-D38_TXnL.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-B4VNj6qm.js → CasinoCalendarDailyItem-sqWHyzUD.js} +6 -6
- package/components/CasinoCategoriesSlider-CkofNfGv.cjs +1 -0
- package/components/{CasinoCategoriesSlider-BNtVy9dZ.js → CasinoCategoriesSlider-DMCT0Ezx.js} +64 -64
- package/components/{CasinoCategoriesSlider-ByWiiCre.js → CasinoCategoriesSlider-mHkbwSha.js} +64 -64
- package/components/{CasinoCollectionsProviders-sp73chER.js → CasinoCollectionsProviders-53NjCkkY.js} +4 -4
- package/components/{CasinoCollectionsProviders-BWHjNJ7D.js → CasinoCollectionsProviders-B5vb4heG.js} +4 -4
- package/components/{CasinoCollectionsProviders-Iwvjux90.cjs → CasinoCollectionsProviders-CvxpEqbb.cjs} +1 -1
- package/components/{CasinoFavoritesSection-DL9l3rme.js → CasinoFavoritesSection-BNkF6EnC.js} +5 -5
- package/components/{CasinoFavoritesSection-CNJE8CmR.js → CasinoFavoritesSection-DU90AeQB.js} +5 -5
- package/components/{CasinoFavoritesSection-DCveWnxo.cjs → CasinoFavoritesSection-O59VpuZn.cjs} +1 -1
- package/components/{CasinoFilter-BJ9RAH6X.js → CasinoFilter-BiK6Q5Ri.js} +253 -254
- package/components/CasinoFilter-DHfJy1ot.cjs +1 -0
- package/components/{CasinoFilter-CEPRTXcd.js → CasinoFilter-ZSdevwFV.js} +225 -224
- package/components/{CasinoGameThumbnail-ByNzt_lj.js → CasinoGameThumbnail-9TykiisT.js} +1239 -1255
- package/components/CasinoGameThumbnail-CXu0N008.cjs +47 -0
- package/components/{CasinoGameThumbnail-BLX7B2C9.js → CasinoGameThumbnail-DLA7Der0.js} +768 -752
- package/components/{CasinoGamesCategorySection-DLtyXL4y.js → CasinoGamesCategorySection-BPGbdT_b.js} +179 -179
- package/components/{CasinoGamesCategorySection-CkaPpe4H.js → CasinoGamesCategorySection-BR29T3CL.js} +176 -176
- package/components/CasinoGamesCategorySection-DkHDQ6kS.cjs +1 -0
- package/components/{CasinoJackpotBanner-D1FBank_.cjs → CasinoJackpotBanner-CFg4HAum.cjs} +1 -1
- package/components/{CasinoJackpotBanner-0_7xAHq_.js → CasinoJackpotBanner-CxkX5wCt.js} +8 -8
- package/components/{CasinoJackpotBanner-suOjEdKK.js → CasinoJackpotBanner-tA8EJuzi.js} +8 -8
- package/components/{CasinoLastPlayedSection-iNRVps0U.js → CasinoLastPlayedSection-Bkqbp3Ir.js} +12 -12
- package/components/{CasinoLastPlayedSection-DeRqmDvT.cjs → CasinoLastPlayedSection-CT4aFgD9.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-EIkfMv8e.js → CasinoLastPlayedSection-DFNEquN4.js} +12 -12
- package/components/{CasinoLobby-CdXuoMWk.cjs → CasinoLobby-7XXNVo7H.cjs} +1 -1
- package/components/{CasinoLobby-C_n2KRef.js → CasinoLobby-DUsExkd3.js} +7 -7
- package/components/{CasinoLobby-B66cbcSf.js → CasinoLobby-WhaUj1mn.js} +7 -7
- package/components/{CasinoMostPlayedSection-D8RGYKns.js → CasinoMostPlayedSection-BTeTjexy.js} +13 -13
- package/components/{CasinoMostPlayedSection-QkJYVQSD.js → CasinoMostPlayedSection-BTqu89rQ.js} +13 -13
- package/components/{CasinoMostPlayedSection-CFC20GVB.cjs → CasinoMostPlayedSection-C6x1VRif.cjs} +1 -1
- package/components/{CasinoMyGames-C5h1cvdX.js → CasinoMyGames-54QuL7AC.js} +8 -8
- package/components/{CasinoMyGames-XuPrviRw.js → CasinoMyGames-6WUHWOPU.js} +8 -8
- package/components/{CasinoMyGames-DGNRAJan.cjs → CasinoMyGames-gtr6v2Sz.cjs} +1 -1
- package/components/{CasinoPage-DxnqqgsK.cjs → CasinoPage-BFSGJKkf.cjs} +1 -1
- package/components/{CasinoPage-CaJ_4wEu.js → CasinoPage-Dvsm7N3x.js} +15 -15
- package/components/{CasinoPage-zqbBeRpH.js → CasinoPage-uFnsu_kK.js} +15 -15
- package/components/{CasinoRandomGame-CP2us9wQ.cjs → CasinoRandomGame-CZhFbu1G.cjs} +2 -2
- package/components/{CasinoRandomGame-DxRM8_Bw.js → CasinoRandomGame-D6DfhsMo.js} +83 -83
- package/components/{CasinoRandomGame-BP_u-dZo.js → CasinoRandomGame-y0dORDv9.js} +12 -12
- package/components/{CasinoSearch-DUVU8u9P.js → CasinoSearch-BYqwTiCp.js} +5 -5
- package/components/{CasinoSearch-DYLKBkXz.js → CasinoSearch-CIipT1_4.js} +5 -5
- package/components/{CasinoSearch-E6byHH4y.cjs → CasinoSearch-mG5BeabE.cjs} +1 -1
- package/components/{CasinoSlider-DIeqeNfV.js → CasinoSlider-DAxkG-Ar.js} +4 -4
- package/components/{CasinoSlider-CKrkEFp2.cjs → CasinoSlider-DO5tHrHM.cjs} +1 -1
- package/components/{CasinoSlider-D4GSh0Rr.js → CasinoSlider-DqlUJp-J.js} +4 -4
- package/components/{CasinoSort-zYMJUN8W.js → CasinoSort-9iLlcWNg.js} +94 -93
- package/components/{CasinoSort-DnffDijG.cjs → CasinoSort-BQCWdQsU.cjs} +1 -1
- package/components/{CasinoSort-CWqOWBmI.js → CasinoSort-QHZXA8-P.js} +102 -103
- package/components/{CasinoWinners-BD8HtIIt.js → CasinoWinners-5bdb2NyW.js} +122 -122
- package/components/{CasinoWinners-CgGvis-Q.cjs → CasinoWinners-CK2tIq3Z.cjs} +1 -1
- package/components/{CasinoWinners-vOM5e-zn.js → CasinoWinners-D0CgROGN.js} +126 -126
- package/components/{GeneralAnimationLoading-B9fWkZ6F.js → GeneralAnimationLoading-BGfoYrCy.js} +7 -7
- package/components/{GeneralAnimationLoading-SN6B4e8D.js → GeneralAnimationLoading-BIaudZkc.js} +7 -7
- package/components/{GeneralAnimationLoading-CB353I6v.cjs → GeneralAnimationLoading-CaB8gNWp.cjs} +1 -1
- 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-qroM0e64.js → casino-play-random-game-Bc2XLGRl.js} +2 -2
- package/stencil/{casino-play-random-game-uBjWXXLi.js → casino-play-random-game-d1PoE_Vf.js} +2 -2
- package/stencil/{casino-play-random-game-C3hhQjhn.cjs → casino-play-random-game-wi94nFPy.cjs} +2 -2
- package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
- package/stencil/{index-97d17652-DJqGt8q2.js → index-97d17652-C7V2DWFg.js} +147 -147
- package/stencil/{index-97d17652-BD-QREJe.js → index-97d17652-DIpvPU9H.js} +151 -151
- package/stencil/index-ab3202d6-BwBGn0Oj.cjs +1 -0
- package/stencil/{index-ab3202d6-CoRS04SH.js → index-ab3202d6-CiI9jxo9.js} +214 -214
- package/stencil/{index-ab3202d6-CSUArOSv.js → index-ab3202d6-Cowbr6qN.js} +209 -209
- package/stencil/{index-b2193545-kN0z2MLt.js → index-b2193545-BL364Gzq.js} +169 -169
- package/stencil/{index-b2193545-D_cUvAA-.js → index-b2193545-DdqB2rk5.js} +176 -176
- package/stencil/index-b2193545-DmjUkkS8.cjs +1 -0
- package/stencil/{ui-image-I_uR7pAI.js → ui-image-B_HWMBI-.js} +1 -1
- package/stencil/{ui-image-BAqS-hS6.js → ui-image-CzGNxx73.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-B-k0kWgx.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-D8-wEkoZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-yceZ9WkN.cjs} +1 -1
- package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-wubI3fkK.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-CzFe50WB.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-Ha_4GYwN.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-z5LhXZY2.js} +2 -2
- package/stencil/{ui-skeleton-C0GZ2ncD.js → ui-skeleton-CsmgJUYN.js} +2 -2
- package/stencil/{ui-skeleton-5mt1L8pA.cjs → ui-skeleton-DTQ__6LQ.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BmKf7IvD.js → ui-skeleton-ae35c6f2-BRNiEwlg.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CQ3pH6qH.cjs → ui-skeleton-ae35c6f2-CZuWo9GO.cjs} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-BSwiS43c.js → ui-skeleton-ae35c6f2-CxSezPtG.js} +1 -1
- package/stencil/{ui-skeleton-CYeeBz0Q.js → ui-skeleton-yRWBmyfK.js} +2 -2
- package/components/CasinoCalendar-wYGJExu0.cjs +0 -19
- package/components/CasinoCalendarDailyDetails-CIDfmzEU.cjs +0 -1
- package/components/CasinoCategoriesSlider-DXG58TlK.cjs +0 -1
- package/components/CasinoFilter-Bwx_m9X7.cjs +0 -1
- package/components/CasinoGameThumbnail-DAYBIv1-.cjs +0 -47
- package/components/CasinoGamesCategorySection-Bcy4b4v7.cjs +0 -1
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-ab3202d6-DitihRZv.cjs +0 -1
- package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as H, Q as be, a as we, S as _e, i as Ge, f as v, c as Re, s as xe, b as ke, e as w, w as C, y as u, d as x, z as h, A as P, h as J, t as E, g as ve, j as k, k as Me, o as Fe,
|
|
1
|
+
import { $ as H, Q as be, a as we, S as _e, i as Ge, f as v, c as Re, s as xe, b as ke, e as w, w as C, y as u, d as x, z as h, A as P, h as J, t as E, g as ve, j as k, k as Me, o as Fe, u as Ce, B as Le, C as Se, D as We, l as Te, M as je, n as V, p as Ne, q as Be, r as ze, K as Y, G as Ie, x as L, E as S, v as K, F as Je, I as Q, J as Pe, N as Ae, O as De } from "./CasinoCalendar-DG7wVbWu.js";
|
|
2
2
|
function He({ withLocale: a, translations: e }) {
|
|
3
3
|
H.subscribe((t) => {
|
|
4
4
|
t == null && (be.set(e), H.set(a));
|
|
@@ -97,7 +97,7 @@ function te(a) {
|
|
|
97
97
|
const p = (
|
|
98
98
|
/*#slots*/
|
|
99
99
|
a[23].close
|
|
100
|
-
), g =
|
|
100
|
+
), g = Ce(
|
|
101
101
|
p,
|
|
102
102
|
a,
|
|
103
103
|
/*$$scope*/
|
|
@@ -113,10 +113,10 @@ function te(a) {
|
|
|
113
113
|
let m = _(a), d = m(a);
|
|
114
114
|
return {
|
|
115
115
|
c() {
|
|
116
|
-
e = w("div"), t = w("div"), n = w("span"), o
|
|
116
|
+
e = w("div"), t = w("div"), n = w("span"), o.c(), l = C(), d.c(), u(n, "class", "ModalCloseBtn"), u(n, "role", "button"), u(t, "class", "ModalContainer"), u(e, "class", "ModalWindow");
|
|
117
117
|
},
|
|
118
118
|
m(r, b) {
|
|
119
|
-
x(r, e, b), h(e, t), h(t, n), o
|
|
119
|
+
x(r, e, b), h(e, t), h(t, n), o.m(n, null), h(t, l), d.m(t, null), s = !0, c || (f = P(
|
|
120
120
|
n,
|
|
121
121
|
"click",
|
|
122
122
|
/*closeModal*/
|
|
@@ -125,19 +125,19 @@ function te(a) {
|
|
|
125
125
|
},
|
|
126
126
|
p(r, b) {
|
|
127
127
|
g && g.p && (!s || b[0] & /*$$scope*/
|
|
128
|
-
4194304) &&
|
|
128
|
+
4194304) && Le(
|
|
129
129
|
g,
|
|
130
130
|
p,
|
|
131
131
|
r,
|
|
132
132
|
/*$$scope*/
|
|
133
133
|
r[22],
|
|
134
|
-
s ?
|
|
134
|
+
s ? We(
|
|
135
135
|
p,
|
|
136
136
|
/*$$scope*/
|
|
137
137
|
r[22],
|
|
138
138
|
b,
|
|
139
139
|
Ue
|
|
140
|
-
) :
|
|
140
|
+
) : Se(
|
|
141
141
|
/*$$scope*/
|
|
142
142
|
r[22]
|
|
143
143
|
),
|
|
@@ -151,7 +151,7 @@ function te(a) {
|
|
|
151
151
|
E(o, r), s = !1;
|
|
152
152
|
},
|
|
153
153
|
d(r) {
|
|
154
|
-
r && k(e), o
|
|
154
|
+
r && k(e), o.d(r), d.d(), c = !1, f();
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
}
|
|
@@ -415,7 +415,7 @@ function $e(a) {
|
|
|
415
415
|
p(r, b) {
|
|
416
416
|
/*show*/
|
|
417
417
|
r[5] ? o ? (o.p(r, b), b[0] & /*show*/
|
|
418
|
-
32 && J(o, 1)) : (o = te(r), o.c(), J(o, 1), o.m(e, t)) : o && (
|
|
418
|
+
32 && J(o, 1)) : (o = te(r), o.c(), J(o, 1), o.m(e, t)) : o && (Te(), E(o, 1, 1, () => {
|
|
419
419
|
o = null;
|
|
420
420
|
}), ve()), m === (m = _(r)) && d ? d.p(r, b) : (d && d.d(1), d = m && m(r), d && (d.c(), d.m(l, s))), (!f || b[0] & /*randombuttonicon*/
|
|
421
421
|
1) && (c.innerHTML = /*randombuttonicon*/
|
|
@@ -451,7 +451,7 @@ function et(a, e, t) {
|
|
|
451
451
|
});
|
|
452
452
|
const le = () => {
|
|
453
453
|
let i = new URL(`${c}/v1/casino/games`);
|
|
454
|
-
i.searchParams.append("platform",
|
|
454
|
+
i.searchParams.append("platform", je(ne)), i.searchParams.append("datasource", f), i.searchParams.append("fields", "gId,id,href,thumbnail,name,vendor,categories"), b && i.searchParams.append("filter", `groups=${b}`), i.searchParams.append("expand", "categories,vendor"), i.searchParams.append("pagination", "offset=0,limit=1000"), fetch(i.href).then((y) => y.json()).then((y) => {
|
|
455
455
|
R = y.items, R.length ? (t(4, T = ie(R.slice(0, 19))), t(7, z = !0)) : (t(4, T = []), t(7, z = !1));
|
|
456
456
|
}).catch((y) => {
|
|
457
457
|
console.log(y), t(7, z = !1);
|
|
@@ -519,8 +519,8 @@ function et(a, e, t) {
|
|
|
519
519
|
65536 && g && de(), a.$$.dirty[0] & /*translationurl*/
|
|
520
520
|
131072 && m && oe(), a.$$.dirty[0] & /*endpoint, datasource*/
|
|
521
521
|
24576 && c && f && le(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
522
|
-
262148 && d && M &&
|
|
523
|
-
524292 && r && M &&
|
|
522
|
+
262148 && d && M && Ne(M, d), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
523
|
+
524292 && r && M && Be(M, r), a.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
524
524
|
2097156 && M && ze(M, `${W}.Style`);
|
|
525
525
|
}, [
|
|
526
526
|
o,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as He, $ as We, S as Ue, i as Ve, f as L, c as Je, s as Ze, b as Ye, e as R, w as D, K as ue, y as g,
|
|
2
|
-
import { d as rt } from "./CasinoGameThumbnail-
|
|
3
|
-
import "./CasinoGamesCategorySection-
|
|
1
|
+
import { a as He, $ as We, S as Ue, i as Ve, f as L, c as Je, s as Ze, b as Ye, e as R, w as D, K as ue, y as g, M as ae, d as j, z as b, R as he, A as Y, G as de, j as G, O as Ke, k as Xe, o as Qe, x as q, E as H, n as me, p as $e, q as et, r as tt, v as fe, U as Le, F as at, H as u, J as nt } from "./CasinoCalendar-JGC8iAmb.js";
|
|
2
|
+
import { d as rt } from "./CasinoGameThumbnail-DLA7Der0.js";
|
|
3
|
+
import "./CasinoGamesCategorySection-BR29T3CL.js";
|
|
4
4
|
function ge(t, e) {
|
|
5
5
|
He(t, e);
|
|
6
6
|
}
|
|
@@ -935,8 +935,8 @@ function gt(t, e, a) {
|
|
|
935
935
|
1610612736 && s && i && ze(), t.$$.dirty[0] & /*showfavorites*/
|
|
936
936
|
256 | t.$$.dirty[1] & /*isLoggedIn*/
|
|
937
937
|
2 && P && K && Ee(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
938
|
-
16388 && m && x &&
|
|
939
|
-
16392 && h && x &&
|
|
938
|
+
16388 && m && x && $e(x, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
939
|
+
16392 && h && x && et(x, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
940
940
|
18432 && x && tt(x, `${B}.Style`);
|
|
941
941
|
}, [
|
|
942
942
|
r,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as He, $ as We, S as Ue, i as Ve, f as L, c as Je, s as Ze, b as Ye, e as R, w as D, K as ue, y as f,
|
|
2
|
-
import { d as rt } from "./CasinoGameThumbnail-
|
|
3
|
-
import "./CasinoGamesCategorySection-
|
|
1
|
+
import { a as He, $ as We, S as Ue, i as Ve, f as L, c as Je, s as Ze, b as Ye, e as R, w as D, K as ue, y as f, M as ae, d as j, z as b, R as he, A as Y, G as de, j as G, O as Ke, k as Xe, o as Qe, x as q, E as H, n as me, p as $e, q as et, r as tt, v as ge, U as Le, F as at, H as u, J as nt } from "./CasinoCalendar-DG7wVbWu.js";
|
|
2
|
+
import { d as rt } from "./CasinoGameThumbnail-9TykiisT.js";
|
|
3
|
+
import "./CasinoGamesCategorySection-BPGbdT_b.js";
|
|
4
4
|
function fe(t, e) {
|
|
5
5
|
He(t, e);
|
|
6
6
|
}
|
|
@@ -933,8 +933,8 @@ function ft(t, e, a) {
|
|
|
933
933
|
1610612736 && s && i && ze(), t.$$.dirty[0] & /*showfavorites*/
|
|
934
934
|
256 | t.$$.dirty[1] & /*isLoggedIn*/
|
|
935
935
|
2 && N && K && Ee(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
936
|
-
16388 && m && P &&
|
|
937
|
-
16392 && h && P &&
|
|
936
|
+
16388 && m && P && $e(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
937
|
+
16392 && h && P && et(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
938
938
|
18432 && P && tt(P, `${B}.Style`);
|
|
939
939
|
}, [
|
|
940
940
|
r,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-wYGJExu0.cjs"),Le=require("./CasinoGameThumbnail-DAYBIv1-.cjs");require("./CasinoGamesCategorySection-Bcy4b4v7.cjs");function $(a,t){e.addMessages(a,t)}function Te(a){e.$locale.set(a)}const ee={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function x(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(a,t){return W(2,arguments),x(a).getTime()-x(t).getTime()}function je(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function De(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function Ge(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ae(a,t,n){const r=a.slice();return r[53]=t[n],r}function ne(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[36]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&8192&&o!==(o="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ie(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[12].length<2)return Ne;if(d[15].length!=0)return ze}let l=i(a),c=l&&l(a),u=a[13]===!1&&le(a),h=a[12].length>=2&&a[15].length==0&&ce(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,f):(u=le(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?h?h.p(d,f):(h=ce(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Ee(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function ze(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Ne(a){let t,n,r=a[15].length!==0&&re(a),o=a[15].length==0&&oe(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=re(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?o?o.p(i,l):(o=oe(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function re(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function oe(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&se();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=se(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function se(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function le(a){let t,n=e.ensure_array_like(a[15]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ie(ae(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35162623){n=e.ensure_array_like(o[15]);let l;for(l=0;l<n.length;l+=1){const c=ae(o,n,l);r[l]?r[l].p(c,i):(r[l]=ie(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ie(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[53].thumbnail),e.set_custom_element_data(t,"gamename",r=a[53].name),e.set_custom_element_data(t,"gamevendor",o=a[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[53].advancedTags)==null?void 0:m.length)>0&&a[25](a[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[53].cellSize),e.set_custom_element_data(t,"gameid",h=a[53].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[53].details?a[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&32768&&n!==(n=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&o!==(o=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=m[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&d!==(d=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ce(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&ue();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=ue(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function ue(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function xe(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,G,P,E,N,b=a[9]==="true"&&ne(a);function F(_,C){return _[18]?Ee:Ie}let I=F(a),v=I(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Pe),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[13]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",G=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[12]),a[34](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),E||(N=[e.listen(l,"input",a[33]),e.listen(l,"focus",a[23]),e.listen(h,"click",a[35]),e.listen(j,"click",a[24])],E=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,C):(b=ne(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",G),I===(I=F(_))&&v?v.p(_,C):(v.d(1),v=I(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[34](null),b&&b.d(),v.d(),a[37](null),E=!1,e.run_all(N)}}}let Pe=50;function Me(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:E}=t,N=window.navigator.userAgent,b=[],F=[],I={},v="",_,C=!0,M=!1,L=!1,D,q=!1,A,O,J=[];const me=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{$(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(ee).forEach(s=>{$(s,ee[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&be(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,A=s.data.session),n(20,O=s.data.userid),n(32,q=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(13,C=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(15,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${o}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(ge(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(15,b=R.map(z=>(z.isFavorite=X(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&>ag("event",s,{context:p})},he=()=>{G!="true"&&H()},fe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),ge=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(I).indexOf(p)>=0?(n(18,L=!1),w(I[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(I[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),pe=()=>{const s=new URL(`${o}/v1/player/${O}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},_e=()=>{n(32,q=!0),n(19,A=l),n(20,O=c)},X=s=>J.findIndex(p=>p==s)!==-1,Se=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((R,z)=>{const Fe=new Date(R.schedules[0].startTime),U=new Date(R.schedules[0].endTime);te(new Date(U),new Date(k))<w&&(w=te(new Date(U),new Date(k)),y=z),je(new Date(k),new Date(Fe))&&De(new Date(k),new Date(U))&&(p=s[y].name)}),p},be=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(12,v=""),n(13,C=!0),n(18,L=!1),n(15,b=[]),n(17,M=!1),Q(M)},K=()=>{n(12,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},we=()=>{Te(u)};e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ve(){v=this.value,n(12,v)}function ye(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(16,_)})}const ke=()=>K(),Ce=()=>H();function Re(s){e.binding_callbacks[s?"unshift":"push"](()=>{D=s,n(14,D)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(28,i=s.datasource),"session"in s&&n(29,l=s.session),"userid"in s&&n(30,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(31,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,G=s.cancelbutton),"notfoundicon"in s&&n(10,P=s.notfoundicon),"mbsource"in s&&n(11,E=s.mbsource)},a.$$.update=()=>{if(a.$$.dirty[0]&268447747)if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),fe(s).then(p=>{Le.dispatchCustomEvent("game_search",{searchValue:v}),n(15,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else C||Y();a.$$.dirty[0]&2&&u&&we(),a.$$.dirty[1]&1&&T&&me(),a.$$.dirty[0]&1610612736&&l&&c&&_e(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&q&&pe(),a.$$.dirty[0]&16388&&h&&D&&e.setClientStyling(D,h),a.$$.dirty[0]&16392&&d&&D&&e.setClientStylingURL(D,d),a.$$.dirty[0]&18432&&D&&e.setStreamStyling(D,`${E}.Style`)},[o,u,h,d,f,S,m,g,j,G,P,E,v,C,D,b,_,M,L,A,O,r,N,Y,he,Se,H,K,i,l,c,T,q,ve,ye,ke,Ce,Re]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Me,xe,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ge,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(de,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=de;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-Lny8nE88.cjs"),Le=require("./CasinoGameThumbnail-CXu0N008.cjs");require("./CasinoGamesCategorySection-DkHDQ6kS.cjs");function $(a,t){e.addMessages(a,t)}function Te(a){e.$locale.set(a)}const ee={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Son arama",loading:"Yükleniyor, lütfen bekleyin...",searchResult:"Arama sonucu",cancel:"İptal",notFound:"Oyun bulunamadı!",notFoundText:"Oynamaya başlamak için lütfen oyunun doğru adını yazın.",noRecentSearches:"Henüz son arama yok. Oyunlarımızdan herhangi birini arayın.",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function V(a){"@babel/helpers - typeof";return V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(a)}function W(a,t){if(t.length<a)throw new TypeError(a+" argument"+(a>1?"s":"")+" required, but only "+t.length+" present")}function x(a){W(1,arguments);var t=Object.prototype.toString.call(a);return a instanceof Date||V(a)==="object"&&t==="[object Date]"?new Date(a.getTime()):typeof a=="number"||t==="[object Number]"?new Date(a):((typeof a=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function te(a,t){return W(2,arguments),x(a).getTime()-x(t).getTime()}function je(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function De(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function Ge(a){e.append_styles(a,"svelte-nijkoq","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 16px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;padding-right:28px}.SearchInput::placeholder{color:var(--emw--color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail-nd{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function ae(a,t,n){const r=a.slice();return r[53]=t[n],r}function ne(a){let t,n=a[21]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",o="SearchCancelButton "+(a[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",a[36]),i=!0)},p(c,u){u[0]&2097152&&n!==(n=c[21]("cancel")+"")&&e.set_data(r,n),u[0]&8192&&o!==(o="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ie(a){let t,n,r,o;function i(d,f){if(d[17]==!0&&d[12].length<2)return Ne;if(d[15].length!=0)return ze}let l=i(a),c=l&&l(a),u=a[13]===!1&&le(a),h=a[12].length>=2&&a[15].length==0&&ce(a);return{c(){c&&c.c(),t=e.space(),n=e.element("div"),u&&u.c(),r=e.space(),h&&h.c(),e.attr(n,"class",o="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,f):(u=le(d),u.c(),u.m(n,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?h?h.p(d,f):(h=ce(d),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(n,"class",o)},d(d){d&&(e.detach(t),e.detach(n)),c&&c.d(d),u&&u.d(),h&&h.d()}}}function Ee(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("loading")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function ze(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("searchResult")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function Ne(a){let t,n,r=a[15].length!==0&&re(a),o=a[15].length==0&&oe(a);return{c(){r&&r.c(),t=e.space(),o&&o.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,n,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=re(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?o?o.p(i,l):(o=oe(i),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),o&&o.d(i)}}}function re(a){let t,n=a[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&2097152&&n!==(n=o[21]("recentSearch")+"")&&e.set_data(r,n)},d(o){o&&e.detach(t)}}}function oe(a){let t,n,r,o=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&se();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(u,h){e.insert(u,t,h),c&&c.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i)},p(u,h){u[10]==="true"?c||(c=se(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),h[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function se(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function le(a){let t,n=e.ensure_array_like(a[15]),r=[];for(let o=0;o<n.length;o+=1)r[o]=ie(ae(a,n,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&35162623){n=e.ensure_array_like(o[15]);let l;for(l=0;l<n.length;l+=1){const c=ae(o,n,l);r[l]?r[l].p(c,i):(r[l]=ie(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=n.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ie(a){let t,n,r,o,i,l,c,u,h,d,f,S;return{c(){var m;t=e.element("casino-game-thumbnail"),e.set_custom_element_data(t,"endpoint",a[0]),e.set_custom_element_data(t,"session",a[19]),e.set_custom_element_data(t,"userid",a[20]),e.set_custom_element_data(t,"favorites",a[8]),e.set_custom_element_data(t,"lang",a[1]),e.set_custom_element_data(t,"gamethumbnail",n=a[53].thumbnail),e.set_custom_element_data(t,"gamename",r=a[53].name),e.set_custom_element_data(t,"gamevendor",o=a[53].vendor.displayName),e.set_custom_element_data(t,"gameLaunchUrl",i=a[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=a[53].isNew),e.set_custom_element_data(t,"gametag",c=((m=a[53].advancedTags)==null?void 0:m.length)>0&&a[25](a[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=a[53].cellSize),e.set_custom_element_data(t,"gameid",h=a[53].id),e.set_custom_element_data(t,"showgamename",a[6]),e.set_custom_element_data(t,"gamefunmode",d=a[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=a[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=a[53].details?a[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",a[4]),e.set_custom_element_data(t,"mbsource",a[11]),e.set_custom_element_data(t,"integratedgameframemobile",a[5]),e.set_custom_element_data(t,"clientstyling",a[2]),e.set_custom_element_data(t,"clientstylingurl",a[3]),e.set_custom_element_data(t,"gamepagemodalurl",a[7])},m(m,g){e.insert(m,t,g)},p(m,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),g[0]&524288&&e.set_custom_element_data(t,"session",m[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",m[8]),g[0]&2&&e.set_custom_element_data(t,"lang",m[1]),g[0]&32768&&n!==(n=m[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=m[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&o!==(o=m[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",o),g[0]&32768&&i!==(i=m[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=m[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=m[53].advancedTags)==null?void 0:T.length)>0&&m[25](m[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=m[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=m[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",m[6]),g[0]&32768&&d!==(d=m[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&f!==(f=m[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=m[53].details?m[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",m[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",m[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",m[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",m[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",m[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",m[7])},d(m){m&&e.detach(t)}}}function ce(a){let t,n,r,o=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,d,f=a[10]==="true"&&ue();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,m){e.insert(S,t,m),f&&f.m(t,null),e.append(t,n),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,h)},p(S,m){S[10]==="true"?f||(f=ue(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),m[0]&2097152&&o!==(o=S[21]("notFound")+"")&&e.set_data(i,o),m[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),m[0]&1024&&d!==(d="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.d()}}}function ue(a){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(n,r){e.insert(n,t,r)},d(n){n&&e.detach(t)}}}function xe(a){let t,n,r,o,i,l,c,u,h,d,f,S,m,g,T,j,G,P,E,N,b=a[9]==="true"&&ne(a);function F(_,C){return _[18]?Ee:Ie}let I=F(a),v=I(a);return{c(){t=e.element("div"),n=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#212121" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),h=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),m=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),v.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Pe),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(h,"class",S="SearchClearButton "+(a[9]!="true"?"WithoutCancel":"")+" "+(a[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(a[13]?"":"SearchAnimation")),e.attr(n,"class","SearchWrap"),e.attr(j,"class",G=a[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(a[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,C){e.insert(_,t,C),e.append(t,n),e.append(n,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,a[12]),a[34](l),e.append(r,u),e.append(r,h),e.append(h,d),e.append(d,f),e.append(r,m),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),E||(N=[e.listen(l,"input",a[33]),e.listen(l,"focus",a[23]),e.listen(h,"click",a[35]),e.listen(j,"click",a[24])],E=!0)},p(_,C){C[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),C[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),C[0]&4608&&S!==(S="SearchClearButton "+(_[9]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(h,"class",S),_[9]==="true"?b?b.p(_,C):(b=ne(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),C[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),C[0]&512&&G!==(G=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",G),I===(I=F(_))&&v?v.p(_,C):(v.d(1),v=I(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),a[34](null),b&&b.d(),v.d(),a[37](null),E=!1,e.run_all(N)}}}let Pe=50;function Me(a,t,n){let r;e.component_subscribe(a,e.$format,s=>n(21,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,{mbsource:E}=t,N=window.navigator.userAgent,b=[],F=[],I={},v="",_,C=!0,M=!1,L=!1,D,q=!1,A,O,J=[];const me=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{$(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(ee).forEach(s=>{$(s,ee[s])});const Z=s=>{s.data&&s.data.type=="SearchedItemClicked"&&be(s.data.gameId),s.data.type=="UserSessionID"&&(n(19,A=s.data.session),n(20,O=s.data.userid),n(32,q=!0)),s.data.type=="CategoryChange"&&H()},Y=()=>{if(n(13,C=!1),n(17,M=!0),o&&i&&u&&v.length<2){n(15,b=[]);let s=localStorage.getItem("searchedGamesWds_casino"),p=[];s&&(p=s.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let R=new URL(`${o}/v1/casino/games/${p[y]}`);R.searchParams.append("language",u),R.searchParams.append("datasource",i),R.searchParams.append("platform",e.getDevice(N)),w.push(ge(R,p[y]))}Promise.all(w).then(R=>{R=R.filter(function(z){return!!z}),n(15,b=R.map(z=>(z.isFavorite=X(z.id),z))),b.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(R=>{B("searchError","SearchWidget")})}}Q(M),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")},B=(s,p)=>{typeof gtag=="function"&>ag("event",s,{context:p})},he=()=>{G!="true"&&H()},fe=s=>new Promise((p,w)=>{n(18,L=!0),fetch(s.href).then(y=>y.json()).then(y=>{n(18,L=!1),p(y)}).catch(y=>{n(18,L=!1),console.error(y),w(y)})}),ge=(s,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(I).indexOf(p)>=0?(n(18,L=!1),w(I[p])):fetch(s).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(I[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),pe=()=>{const s=new URL(`${o}/v1/player/${O}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},_e=()=>{n(32,q=!0),n(19,A=l),n(20,O=c)},X=s=>J.findIndex(p=>p==s)!==-1,Se=s=>{if((s==null?void 0:s.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return s.forEach((R,z)=>{const Fe=new Date(R.schedules[0].startTime),U=new Date(R.schedules[0].endTime);te(new Date(U),new Date(k))<w&&(w=te(new Date(U),new Date(k)),y=z),je(new Date(k),new Date(Fe))&&De(new Date(k),new Date(U))&&(p=s[y].name)}),p},be=s=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(s)===-1){let p;F.unshift(s),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{n(12,v=""),n(13,C=!0),n(18,L=!1),n(15,b=[]),n(17,M=!1),Q(M)},K=()=>{n(12,v=""),_.focus()},Q=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},we=()=>{Te(u)};e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ve(){v=this.value,n(12,v)}function ye(s){e.binding_callbacks[s?"unshift":"push"](()=>{_=s,n(16,_)})}const ke=()=>K(),Ce=()=>H();function Re(s){e.binding_callbacks[s?"unshift":"push"](()=>{D=s,n(14,D)})}return a.$$set=s=>{"endpoint"in s&&n(0,o=s.endpoint),"datasource"in s&&n(28,i=s.datasource),"session"in s&&n(29,l=s.session),"userid"in s&&n(30,c=s.userid),"lang"in s&&n(1,u=s.lang),"clientstyling"in s&&n(2,h=s.clientstyling),"clientstylingurl"in s&&n(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&n(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&n(5,S=s.integratedgameframemobile),"showgamename"in s&&n(6,m=s.showgamename),"gamepagemodalurl"in s&&n(7,g=s.gamepagemodalurl),"translationurl"in s&&n(31,T=s.translationurl),"showfavorites"in s&&n(8,j=s.showfavorites),"cancelbutton"in s&&n(9,G=s.cancelbutton),"notfoundicon"in s&&n(10,P=s.notfoundicon),"mbsource"in s&&n(11,E=s.mbsource)},a.$$.update=()=>{if(a.$$.dirty[0]&268447747)if(v.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(N)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${v}`),fe(s).then(p=>{Le.dispatchCustomEvent("game_search",{searchValue:v}),n(15,b=p.items.map(w=>(w.isFavorite=X(w.id),w)))})}else C||Y();a.$$.dirty[0]&2&&u&&we(),a.$$.dirty[1]&1&&T&&me(),a.$$.dirty[0]&1610612736&&l&&c&&_e(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&q&&pe(),a.$$.dirty[0]&16388&&h&&D&&e.setClientStyling(D,h),a.$$.dirty[0]&16392&&d&&D&&e.setClientStylingURL(D,d),a.$$.dirty[0]&18432&&D&&e.setStreamStyling(D,`${E}.Style`)},[o,u,h,d,f,S,m,g,j,G,P,E,v,C,D,b,_,M,L,A,O,r,N,Y,he,Se,H,K,i,l,c,T,q,ve,ye,ke,Ce,Re]}class de extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Me,xe,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:31,showfavorites:8,cancelbutton:9,notfoundicon:10,mbsource:11},Ge,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[6]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[7]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[8]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[9]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[10]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(de,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=de;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Z, Q as Ne, a as Re, S as Te, i as je, f as C, c as Be, s as Oe, b as We, e as v, w as R, y as f, d as S, z as p, A as U, G as oe, j as D, O as ze, o as Ge,
|
|
1
|
+
import { $ as Z, Q as Ne, a as Re, S as Te, i as je, f as C, c as Be, s as Oe, b as We, e as v, w as R, y as f, d as S, z as p, A as U, G as oe, j as D, O as ze, o as Ge, v as B, U as z, Y as pe, I as ie, n as X, p as xe, q as Ye, r as qe, Z as ye, F as Ue, x as J, E as V } from "./CasinoCalendar-DG7wVbWu.js";
|
|
2
2
|
function Pe({ withLocale: n, translations: e }) {
|
|
3
3
|
Z.subscribe((t) => {
|
|
4
4
|
t == null && (Ne.set(e), Z.set(n));
|
|
@@ -596,10 +596,10 @@ function Ve(n, e, t) {
|
|
|
596
596
|
n.$$.dirty[0] & /*activeindex*/
|
|
597
597
|
2, n.$$.dirty[0] & /*translationurl*/
|
|
598
598
|
33554432 && k && we(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
599
|
-
4194320 && _ && A &&
|
|
600
|
-
8388624 && g && A &&
|
|
599
|
+
4194320 && _ && A && xe(A, _), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
600
|
+
8388624 && g && A && Ye(A, g), n.$$.dirty[0] & /*customStylingContainer*/
|
|
601
601
|
16 | n.$$.dirty[1] & /*mbsource*/
|
|
602
|
-
1 && G && A &&
|
|
602
|
+
1 && G && A && qe(A, `${G}.Style`), n.$$.dirty[0] & /*lang*/
|
|
603
603
|
268435456 && m && be();
|
|
604
604
|
}, [
|
|
605
605
|
u,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-wYGJExu0.cjs");function Ce({withLocale:i,translations:e}){t.$locale.subscribe(r=>{r==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function Y(i,e){t.addMessages(i,e)}function ye(i){t.$locale.set(i)}const P={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş",register:"Kayıt",deposit:"Para Yatır"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata"},"pt-br":{login:"Entrem",register:"Registro",deposit:"Depósito"},"es-mx":{login:"Entrar",register:"Registro",deposit:"Depósito"},"en-us":{login:"Login",register:"Register",deposit:"Deposit"}};function we(i){t.append_styles(i,"svelte-wvhhix",'*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}')}function U(i,e,r){const a=i.slice();return a[48]=e[r],a[50]=r,a}function K(i,e,r){const a=i.slice();return a[51]=e[r],a}function X(i,e,r){const a=i.slice();return a[54]=e[r],a[56]=r,a}function J(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[9]);const s=n=>n[48].id;for(let n=0;n<l.length;n+=1){let c=U(i,l,n),d=s(c);r.set(d,e[n]=te(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&77775&&(l=t.ensure_array_like(n[9]),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,te,a,U))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function be(i){let e,r=i[48].name+"",a;return{c(){e=t.element("button"),a=t.text(r),t.attr(e,"class","CategoryButton")},m(l,s){t.insert(l,e,s),t.append(e,a)},p(l,s){s[0]&512&&r!==(r=l[48].name+"")&&t.set_data(a,r)},d(l){l&&t.detach(e)}}}function _e(i){let e,r=i[48].label+"",a,l;return{c(){e=t.element("a"),a=t.text(r),t.attr(e,"href",l=i[48].path)},m(s,n){t.insert(s,e,n),t.append(e,a)},p(s,n){n[0]&512&&r!==(r=s[48].label+"")&&t.set_data(a,r),n[0]&512&&l!==(l=s[48].path)&&t.attr(e,"href",l)},d(s){s&&t.detach(e)}}}function Q(i){let e,r=i[10].length>0&&i[2]=="true"&&V(i);return{c(){r&&r.c(),e=t.empty()},m(a,l){r&&r.m(a,l),t.insert(a,e,l)},p(a,l){a[10].length>0&&a[2]=="true"?r?r.p(a,l):(r=V(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&t.detach(e),r&&r.d(a)}}}function V(i){let e,r=t.ensure_array_like(i[10]),a=[];for(let l=0;l<r.length;l+=1)a[l]=ee(K(i,r,l));return{c(){e=t.element("ul");for(let l=0;l<a.length;l+=1)a[l].c();t.attr(e,"class","DropDown")},m(l,s){t.insert(l,e,s);for(let n=0;n<a.length;n+=1)a[n]&&a[n].m(e,null)},p(l,s){if(s[0]&10176){r=t.ensure_array_like(l[10]);let n;for(n=0;n<r.length;n+=1){const c=K(l,r,n);a[n]?a[n].p(c,s):(a[n]=ee(c),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=r.length}},d(l){l&&t.detach(e),t.destroy_each(a,l)}}}function Z(i){var p;let e,r,a=((p=i[54])==null?void 0:p.name)+"",l,s,n,c,d;function v(...m){return i[33](i[48],i[50],i[54],i[56],...m)}return{c(){e=t.element("li"),r=t.element("a"),l=t.text(a),n=t.space(),t.attr(r,"class",s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))},m(m,C){t.insert(m,e,C),t.append(e,r),t.append(r,l),t.append(e,n),c||(d=t.listen(e,"click",v),c=!0)},p(m,C){var k;i=m,C[0]&1024&&a!==(a=((k=i[54])==null?void 0:k.name)+"")&&t.set_data(l,a),C[0]&1984&&s!==(s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))&&t.attr(r,"class",s)},d(m){m&&t.detach(e),c=!1,d()}}}function $(i,e){let r,a,l=e[50]==e[51].index&&Z(e);return{key:i,first:null,c(){r=t.empty(),l&&l.c(),a=t.empty(),this.first=r},m(s,n){t.insert(s,r,n),l&&l.m(s,n),t.insert(s,a,n)},p(s,n){e=s,e[50]==e[51].index?l?l.p(e,n):(l=Z(e),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},d(s){s&&(t.detach(r),t.detach(a)),l&&l.d(s)}}}function ee(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[51].items);const s=n=>n[54].id;for(let n=0;n<l.length;n+=1){let c=X(i,l,n),d=s(c);r.set(d,e[n]=$(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&10176&&(l=t.ensure_array_like(n[51].items),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,$,a,X))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function te(i,e){let r,a,l,s,n,c,d,v,p,m,C;function k(h,b){return h[0]==="headerMain"?_e:be}let F=k(e),g=F(e),u=e[11][e[50]]==!0&&Q(e);function y(...h){return e[34](e[48],e[50],...h)}return{key:i,first:null,c(){var h,b;r=t.element("li"),a=t.element("div"),l=t.element("img"),c=t.space(),g.c(),d=t.space(),u&&u.c(),v=t.space(),t.attr(l,"class",s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone")),t.src_url_equal(l.src,n=e[16](e[48]))||t.attr(l,"src",n),t.attr(a,"class","CategoryIcon"),t.attr(r,"class",p="CarouselItem "+(((h=e[1])==null?void 0:h.toString().indexOf("$"))>-1?((b=e[1])==null?void 0:b.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu")),this.first=r},m(h,b){t.insert(h,r,b),t.append(r,a),t.append(a,l),t.append(r,c),g.m(r,null),t.append(r,d),u&&u.m(r,null),t.append(r,v),m||(C=t.listen(r,"click",y),m=!0)},p(h,b){var E,S;e=h,b[0]&8&&s!==(s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone"))&&t.attr(l,"class",s),b[0]&512&&!t.src_url_equal(l.src,n=e[16](e[48]))&&t.attr(l,"src",n),F===(F=k(e))&&g?g.p(e,b):(g.d(1),g=F(e),g&&(g.c(),g.m(r,d))),e[11][e[50]]==!0?u?u.p(e,b):(u=Q(e),u.c(),u.m(r,v)):u&&(u.d(1),u=null),b[0]&515&&p!==(p="CarouselItem "+(((E=e[1])==null?void 0:E.toString().indexOf("$"))>-1?((S=e[1])==null?void 0:S.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu"))&&t.attr(r,"class",p)},d(h){h&&t.detach(r),g.d(),u&&u.d(),m=!1,C()}}}function ve(i){let e,r,a,l,s,n,c,d,v,p,m,C,k,F,g,u=i[9].length>0&&J(i);return{c(){e=t.element("div"),r=t.element("div"),a=t.element("div"),a.innerHTML='<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',l=t.space(),s=t.element("div"),n=t.element("ul"),c=t.element("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',d=t.space(),u&&u.c(),v=t.space(),p=t.element("div"),p.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',t.attr(a,"class","CarouselLeftArrow"),t.attr(c,"class","TouchOnly"),t.attr(n,"id","CarouselNav"),t.attr(n,"class","CarouselItems"),t.attr(s,"class","CarouselNavWrap scroller"),t.attr(p,"class","CarouselRightArrow"),t.attr(r,"class",m=`CarouselContainer CarouselContainerMobile ${i[0]==="headerMain"?"CarouselContainerHeaderMain":""}`),t.attr(r,"style",C=i[0]==="headerMain"?"max-width: auto":void 0),t.attr(e,"class",k="CarouselWrapper "+(i[0]==="headerMain"?"CarouselWrapperHeaderMain":""))},m(y,h){t.insert(y,e,h),t.append(e,r),t.append(r,a),t.append(r,l),t.append(r,s),t.append(s,n),t.append(n,c),t.append(n,d),u&&u.m(n,null),i[35](n),i[36](s),t.append(r,v),t.append(r,p),i[38](e),F||(g=[t.listen(a,"click",i[32]),t.listen(p,"click",i[37])],F=!0)},p(y,h){y[9].length>0?u?u.p(y,h):(u=J(y),u.c(),u.m(n,null)):u&&(u.d(1),u=null),h[0]&1&&m!==(m=`CarouselContainer CarouselContainerMobile ${y[0]==="headerMain"?"CarouselContainerHeaderMain":""}`)&&t.attr(r,"class",m),h[0]&1&&C!==(C=y[0]==="headerMain"?"max-width: auto":void 0)&&t.attr(r,"style",C),h[0]&1&&k!==(k="CarouselWrapper "+(y[0]==="headerMain"?"CarouselWrapperHeaderMain":""))&&t.attr(e,"class",k)},i:t.noop,o:t.noop,d(y){y&&t.detach(e),u&&u.d(),i[35](null),i[36](null),i[38](null),F=!1,t.run_all(g)}}}function ke(i,e,r){let{endpoint:a=""}=e,{datasource:l=""}=e,{onclickeventname:s="defaultEvent"}=e,{actionevent:n="defaultEvent"}=e,{favoritesnumber:c="0"}=e,{location:d=""}=e,{clientstyling:v=""}=e,{clientstylingurl:p=""}=e,{identity:m=""}=e,{translationurl:C=""}=e,{isprimarymenu:k=!1}=e,{issecondarymenu:F=!1}=e,{lang:g=""}=e,{activeindex:u="0"}=e,{showsubgroups:y="false"}=e,{categoriesicon:h="false"}=e,{lobbyiconimage:b=""}=e,{mygamesiconimage:E=""}=e,{mbsource:S=""}=e;Ce({withLocale:"en",translations:{}});const ne=()=>{fetch(C).then(f=>f.json()).then(f=>{Object.keys(f).forEach(_=>{Y(_,f[_])})}).catch(f=>{console.log(f)})};Object.keys(P).forEach(o=>{Y(o,P[o])});let H,D,R,O,M,T=[],j=[],N=[],w,W=(o,f,_,L,I)=>{var A;if(!(o.subGroups&&L===null)){if(B(),r(6,D=f),r(6,D),I!="secondary"){window.postMessage({type:n=="CategoryChange"?"CategoryChange":"NavigateTo",buzz:"1",itemId:o.id,index:f,item:o,path:o.path,externalLink:o.externalLink||!1,target:((A=o.attrs)==null?void 0:A.target)||null},window.location.href),r(7,R=null),r(8,O=null);return}r(7,R=L),r(7,R),r(8,O=R),window.postMessage({type:n,itemId:_.id,subIndex:L,subItem:_},window.location.href)}},x=()=>{w&&(N.length!==D?r(12,w.scrollLeft-=250,w):r(12,w.scrollLeft=0,w))},z=()=>{w&&(N.length!==D?r(12,w.scrollLeft+=250,w):r(12,w.scrollLeft=0,w))};const G=o=>{o.data.type=="SliderData"&&o.data.identity==m&&(r(9,T=o.data.data),r(11,N=new Array(T.length).fill(!1)),y=="true"&&ie()),o.data.type=="GoToHomepage"&&T.forEach((f,_)=>{f.path.endsWith("/casino")&&(r(6,D=_),r(6,D))})},oe=()=>{ye(g)},ae=(o,f,_)=>{if(d=="secondaryMenu"&&a&&l&&g&&o.id){let L=new URL(`${a}/v1/casino/groups/${l}/${o.id}/subGroups?language=${g}`);fetch(L.href).then(I=>I.json()).then(I=>{I.index=f,r(10,j=j.concat(I)),y=="false"&&window.postMessage({type:n,itemId:o.id,index:f,item:o},window.location.href);const A=[];j.map(ge=>(ge.items.forEach(q=>{A.find(pe=>q.id==pe)||A.push(q.id)}),A.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:A},window.location.href)}).then(()=>{H.querySelectorAll(".DropDown")&&B()})}d=="headerMain"&&window.postMessage({type:n,item:o},window.location.href)},B=()=>{const o=H.querySelectorAll(".DropDown");document.activeElement.blur(),w.classList.add("isScrolling");for(let f=0;f<o.length;f++)o[f].style.transform="translateX(-"+w.scrollLeft+"px)";w.classList.remove("isScrolling")},ie=()=>{T.forEach((o,f)=>{var _;((_=o==null?void 0:o.subGroups)==null?void 0:_.count)>0&&(r(11,N[f]=!0,N),ae(o,f))})},le=o=>{let f="";return o.id==="LOBBY"?f=b:o.id==="MYGAMES"&&(f=E),o.icon||f};t.onMount(()=>(window.addEventListener("message",G,!1),"ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),setTimeout(()=>{w.addEventListener("scroll",B)},500),window.postMessage({type:"SliderLoaded",identity:m}),()=>{window.removeEventListener("message",G),H.removeEventListener("scroll",B)}));const se=()=>x(),ce=(o,f,_,L,I)=>{W(o,f,_,L,"secondary"),I.stopPropagation()},ue=(o,f,_)=>{W(o,f,null,null,"main"),_.preventDefault()};function de(o){t.binding_callbacks[o?"unshift":"push"](()=>{H=o,r(5,H)})}function fe(o){t.binding_callbacks[o?"unshift":"push"](()=>{w=o,r(12,w)})}const he=()=>z();function me(o){t.binding_callbacks[o?"unshift":"push"](()=>{M=o,r(4,M)})}return i.$$set=o=>{"endpoint"in o&&r(17,a=o.endpoint),"datasource"in o&&r(18,l=o.datasource),"onclickeventname"in o&&r(19,s=o.onclickeventname),"actionevent"in o&&r(20,n=o.actionevent),"favoritesnumber"in o&&r(21,c=o.favoritesnumber),"location"in o&&r(0,d=o.location),"clientstyling"in o&&r(22,v=o.clientstyling),"clientstylingurl"in o&&r(23,p=o.clientstylingurl),"identity"in o&&r(24,m=o.identity),"translationurl"in o&&r(25,C=o.translationurl),"isprimarymenu"in o&&r(26,k=o.isprimarymenu),"issecondarymenu"in o&&r(27,F=o.issecondarymenu),"lang"in o&&r(28,g=o.lang),"activeindex"in o&&r(1,u=o.activeindex),"showsubgroups"in o&&r(2,y=o.showsubgroups),"categoriesicon"in o&&r(3,h=o.categoriesicon),"lobbyiconimage"in o&&r(29,b=o.lobbyiconimage),"mygamesiconimage"in o&&r(30,E=o.mygamesiconimage),"mbsource"in o&&r(31,S=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2,i.$$.dirty[0]&33554432&&C&&ne(),i.$$.dirty[0]&4194320&&v&&M&&t.setClientStyling(M,v),i.$$.dirty[0]&8388624&&p&&M&&t.setClientStylingURL(M,p),i.$$.dirty[0]&16|i.$$.dirty[1]&1&&S&&M&&t.setStreamStyling(M,`${S}.Style`),i.$$.dirty[0]&268435456&&g&&oe()},[d,u,y,h,M,H,D,R,O,T,j,N,w,W,x,z,le,a,l,s,n,c,v,p,m,C,k,F,g,b,E,S,se,ce,ue,de,fe,he,me]}class re extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ke,ve,t.safe_not_equal,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:1,showsubgroups:2,categoriesicon:3,lobbyiconimage:29,mygamesiconimage:30,mbsource:31},we,[-1,-1])}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),t.flush()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),t.flush()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),t.flush()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),t.flush()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),t.flush()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),t.flush()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),t.flush()}get activeindex(){return this.$$.ctx[1]}set activeindex(e){this.$$set({activeindex:e}),t.flush()}get showsubgroups(){return this.$$.ctx[2]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get categoriesicon(){return this.$$.ctx[3]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[29]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[30]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[31]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(re,{endpoint:{},datasource:{},onclickeventname:{},actionevent:{},favoritesnumber:{},location:{},clientstyling:{},clientstylingurl:{},identity:{},translationurl:{},isprimarymenu:{type:"Boolean"},issecondarymenu:{type:"Boolean"},lang:{},activeindex:{},showsubgroups:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=re;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoCalendar-Lny8nE88.cjs");function Ce({withLocale:i,translations:e}){t.$locale.subscribe(r=>{r==null&&(t.$dictionary.set(e),t.$locale.set(i))})}function Y(i,e){t.addMessages(i,e)}function ye(i){t.$locale.set(i)}const P={en:{login:"Login",register:"Register",deposit:"Deposit"},"zh-hk":{login:"登錄",register:"登記",deposit:"訂金"},fr:{login:"Connexion",register:"Registre",deposit:"Dépôt"},tr:{login:"Giriş",register:"Kayıt",deposit:"Para Yatır"},ro:{login:"Autentificare",register:"Inregistrare",deposit:"Depozit"},es:{login:"Iniciar sesión",register:"Regístrate",deposit:"Deposita"},pt:{login:"Entrar",register:"Registro",deposit:"Depósito"},hr:{login:"Prijava",register:"Registracija",deposit:"Uplata"},"pt-br":{login:"Entrem",register:"Registro",deposit:"Depósito"},"es-mx":{login:"Entrar",register:"Registro",deposit:"Depósito"},"en-us":{login:"Login",register:"Register",deposit:"Deposit"}};function we(i){t.append_styles(i,"svelte-wvhhix",'*,*::before,*::after{margin:0;padding:0;font-family:inherit;box-sizing:border-box}.scroller{scroll-behavior:smooth}.CarouselWrapper{background:var(--emw--color-primary, #194127)}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emw--categories-arrows-bg, var(--emw--color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emw--categories-arrows, var(--emw--color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)));background:linear-gradient(var(--emw--categories-color-secondary, var(--emw--color-secondary, #FD2839)), var(--emw--categories-color-primary, var(--emw--color-primary, #22B04E)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emw--categories-contrast, var(--emw--color-background, #07072A));color:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emw--categories-contrast, var(--emw--color-contrast, #07072A));background:var(--emw--categories-typography, var(--emw--color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emw--header-typography, var(--emw--color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emw--color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emw--color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emw--color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}')}function U(i,e,r){const a=i.slice();return a[48]=e[r],a[50]=r,a}function K(i,e,r){const a=i.slice();return a[51]=e[r],a}function X(i,e,r){const a=i.slice();return a[54]=e[r],a[56]=r,a}function J(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[9]);const s=n=>n[48].id;for(let n=0;n<l.length;n+=1){let c=U(i,l,n),d=s(c);r.set(d,e[n]=te(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&77775&&(l=t.ensure_array_like(n[9]),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,te,a,U))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function be(i){let e,r=i[48].name+"",a;return{c(){e=t.element("button"),a=t.text(r),t.attr(e,"class","CategoryButton")},m(l,s){t.insert(l,e,s),t.append(e,a)},p(l,s){s[0]&512&&r!==(r=l[48].name+"")&&t.set_data(a,r)},d(l){l&&t.detach(e)}}}function _e(i){let e,r=i[48].label+"",a,l;return{c(){e=t.element("a"),a=t.text(r),t.attr(e,"href",l=i[48].path)},m(s,n){t.insert(s,e,n),t.append(e,a)},p(s,n){n[0]&512&&r!==(r=s[48].label+"")&&t.set_data(a,r),n[0]&512&&l!==(l=s[48].path)&&t.attr(e,"href",l)},d(s){s&&t.detach(e)}}}function Q(i){let e,r=i[10].length>0&&i[2]=="true"&&V(i);return{c(){r&&r.c(),e=t.empty()},m(a,l){r&&r.m(a,l),t.insert(a,e,l)},p(a,l){a[10].length>0&&a[2]=="true"?r?r.p(a,l):(r=V(a),r.c(),r.m(e.parentNode,e)):r&&(r.d(1),r=null)},d(a){a&&t.detach(e),r&&r.d(a)}}}function V(i){let e,r=t.ensure_array_like(i[10]),a=[];for(let l=0;l<r.length;l+=1)a[l]=ee(K(i,r,l));return{c(){e=t.element("ul");for(let l=0;l<a.length;l+=1)a[l].c();t.attr(e,"class","DropDown")},m(l,s){t.insert(l,e,s);for(let n=0;n<a.length;n+=1)a[n]&&a[n].m(e,null)},p(l,s){if(s[0]&10176){r=t.ensure_array_like(l[10]);let n;for(n=0;n<r.length;n+=1){const c=K(l,r,n);a[n]?a[n].p(c,s):(a[n]=ee(c),a[n].c(),a[n].m(e,null))}for(;n<a.length;n+=1)a[n].d(1);a.length=r.length}},d(l){l&&t.detach(e),t.destroy_each(a,l)}}}function Z(i){var p;let e,r,a=((p=i[54])==null?void 0:p.name)+"",l,s,n,c,d;function v(...m){return i[33](i[48],i[50],i[54],i[56],...m)}return{c(){e=t.element("li"),r=t.element("a"),l=t.text(a),n=t.space(),t.attr(r,"class",s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))},m(m,C){t.insert(m,e,C),t.append(e,r),t.append(r,l),t.append(e,n),c||(d=t.listen(e,"click",v),c=!0)},p(m,C){var k;i=m,C[0]&1024&&a!==(a=((k=i[54])==null?void 0:k.name)+"")&&t.set_data(l,a),C[0]&1984&&s!==(s="SubDropDown "+(i[50]==i[6]&&(i[7]==i[56]||i[8]==i[56])?"active":""))&&t.attr(r,"class",s)},d(m){m&&t.detach(e),c=!1,d()}}}function $(i,e){let r,a,l=e[50]==e[51].index&&Z(e);return{key:i,first:null,c(){r=t.empty(),l&&l.c(),a=t.empty(),this.first=r},m(s,n){t.insert(s,r,n),l&&l.m(s,n),t.insert(s,a,n)},p(s,n){e=s,e[50]==e[51].index?l?l.p(e,n):(l=Z(e),l.c(),l.m(a.parentNode,a)):l&&(l.d(1),l=null)},d(s){s&&(t.detach(r),t.detach(a)),l&&l.d(s)}}}function ee(i){let e=[],r=new Map,a,l=t.ensure_array_like(i[51].items);const s=n=>n[54].id;for(let n=0;n<l.length;n+=1){let c=X(i,l,n),d=s(c);r.set(d,e[n]=$(d,c))}return{c(){for(let n=0;n<e.length;n+=1)e[n].c();a=t.empty()},m(n,c){for(let d=0;d<e.length;d+=1)e[d]&&e[d].m(n,c);t.insert(n,a,c)},p(n,c){c[0]&10176&&(l=t.ensure_array_like(n[51].items),e=t.update_keyed_each(e,c,s,1,n,l,r,a.parentNode,t.destroy_block,$,a,X))},d(n){n&&t.detach(a);for(let c=0;c<e.length;c+=1)e[c].d(n)}}}function te(i,e){let r,a,l,s,n,c,d,v,p,m,C;function k(h,b){return h[0]==="headerMain"?_e:be}let F=k(e),g=F(e),u=e[11][e[50]]==!0&&Q(e);function y(...h){return e[34](e[48],e[50],...h)}return{key:i,first:null,c(){var h,b;r=t.element("li"),a=t.element("div"),l=t.element("img"),c=t.space(),g.c(),d=t.space(),u&&u.c(),v=t.space(),t.attr(l,"class",s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone")),t.src_url_equal(l.src,n=e[16](e[48]))||t.attr(l,"src",n),t.attr(a,"class","CategoryIcon"),t.attr(r,"class",p="CarouselItem "+(((h=e[1])==null?void 0:h.toString().indexOf("$"))>-1?((b=e[1])==null?void 0:b.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu")),this.first=r},m(h,b){t.insert(h,r,b),t.append(r,a),t.append(a,l),t.append(r,c),g.m(r,null),t.append(r,d),u&&u.m(r,null),t.append(r,v),m||(C=t.listen(r,"click",y),m=!0)},p(h,b){var E,S;e=h,b[0]&8&&s!==(s="CategoryIconImg "+(e[3]==="true"?"":"DisplayNone"))&&t.attr(l,"class",s),b[0]&512&&!t.src_url_equal(l.src,n=e[16](e[48]))&&t.attr(l,"src",n),F===(F=k(e))&&g?g.p(e,b):(g.d(1),g=F(e),g&&(g.c(),g.m(r,d))),e[11][e[50]]==!0?u?u.p(e,b):(u=Q(e),u.c(),u.m(r,v)):u&&(u.d(1),u=null),b[0]&515&&p!==(p="CarouselItem "+(((E=e[1])==null?void 0:E.toString().indexOf("$"))>-1?((S=e[1])==null?void 0:S.split("$").pop())==e[48].id.split("$").pop()?"active":"":e[1]==e[48].id?"active":"")+" "+(e[0]=="headerMain"?"":"SecondaryMenu"))&&t.attr(r,"class",p)},d(h){h&&t.detach(r),g.d(),u&&u.d(),m=!1,C()}}}function ve(i){let e,r,a,l,s,n,c,d,v,p,m,C,k,F,g,u=i[9].length>0&&J(i);return{c(){e=t.element("div"),r=t.element("div"),a=t.element("div"),a.innerHTML='<svg fill="none" stroke="var(--emw--categories-arrows, var( --emw--color-white, #FFFFFF));" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',l=t.space(),s=t.element("div"),n=t.element("ul"),c=t.element("li"),c.innerHTML='<a href="#CarouselNav">Close Subs</a>',d=t.space(),u&&u.c(),v=t.space(),p=t.element("div"),p.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',t.attr(a,"class","CarouselLeftArrow"),t.attr(c,"class","TouchOnly"),t.attr(n,"id","CarouselNav"),t.attr(n,"class","CarouselItems"),t.attr(s,"class","CarouselNavWrap scroller"),t.attr(p,"class","CarouselRightArrow"),t.attr(r,"class",m=`CarouselContainer CarouselContainerMobile ${i[0]==="headerMain"?"CarouselContainerHeaderMain":""}`),t.attr(r,"style",C=i[0]==="headerMain"?"max-width: auto":void 0),t.attr(e,"class",k="CarouselWrapper "+(i[0]==="headerMain"?"CarouselWrapperHeaderMain":""))},m(y,h){t.insert(y,e,h),t.append(e,r),t.append(r,a),t.append(r,l),t.append(r,s),t.append(s,n),t.append(n,c),t.append(n,d),u&&u.m(n,null),i[35](n),i[36](s),t.append(r,v),t.append(r,p),i[38](e),F||(g=[t.listen(a,"click",i[32]),t.listen(p,"click",i[37])],F=!0)},p(y,h){y[9].length>0?u?u.p(y,h):(u=J(y),u.c(),u.m(n,null)):u&&(u.d(1),u=null),h[0]&1&&m!==(m=`CarouselContainer CarouselContainerMobile ${y[0]==="headerMain"?"CarouselContainerHeaderMain":""}`)&&t.attr(r,"class",m),h[0]&1&&C!==(C=y[0]==="headerMain"?"max-width: auto":void 0)&&t.attr(r,"style",C),h[0]&1&&k!==(k="CarouselWrapper "+(y[0]==="headerMain"?"CarouselWrapperHeaderMain":""))&&t.attr(e,"class",k)},i:t.noop,o:t.noop,d(y){y&&t.detach(e),u&&u.d(),i[35](null),i[36](null),i[38](null),F=!1,t.run_all(g)}}}function ke(i,e,r){let{endpoint:a=""}=e,{datasource:l=""}=e,{onclickeventname:s="defaultEvent"}=e,{actionevent:n="defaultEvent"}=e,{favoritesnumber:c="0"}=e,{location:d=""}=e,{clientstyling:v=""}=e,{clientstylingurl:p=""}=e,{identity:m=""}=e,{translationurl:C=""}=e,{isprimarymenu:k=!1}=e,{issecondarymenu:F=!1}=e,{lang:g=""}=e,{activeindex:u="0"}=e,{showsubgroups:y="false"}=e,{categoriesicon:h="false"}=e,{lobbyiconimage:b=""}=e,{mygamesiconimage:E=""}=e,{mbsource:S=""}=e;Ce({withLocale:"en",translations:{}});const ne=()=>{fetch(C).then(f=>f.json()).then(f=>{Object.keys(f).forEach(_=>{Y(_,f[_])})}).catch(f=>{console.log(f)})};Object.keys(P).forEach(o=>{Y(o,P[o])});let H,D,R,O,M,T=[],j=[],N=[],w,W=(o,f,_,L,I)=>{var A;if(!(o.subGroups&&L===null)){if(B(),r(6,D=f),r(6,D),I!="secondary"){window.postMessage({type:n=="CategoryChange"?"CategoryChange":"NavigateTo",buzz:"1",itemId:o.id,index:f,item:o,path:o.path,externalLink:o.externalLink||!1,target:((A=o.attrs)==null?void 0:A.target)||null},window.location.href),r(7,R=null),r(8,O=null);return}r(7,R=L),r(7,R),r(8,O=R),window.postMessage({type:n,itemId:_.id,subIndex:L,subItem:_},window.location.href)}},x=()=>{w&&(N.length!==D?r(12,w.scrollLeft-=250,w):r(12,w.scrollLeft=0,w))},z=()=>{w&&(N.length!==D?r(12,w.scrollLeft+=250,w):r(12,w.scrollLeft=0,w))};const G=o=>{o.data.type=="SliderData"&&o.data.identity==m&&(r(9,T=o.data.data),r(11,N=new Array(T.length).fill(!1)),y=="true"&&ie()),o.data.type=="GoToHomepage"&&T.forEach((f,_)=>{f.path.endsWith("/casino")&&(r(6,D=_),r(6,D))})},oe=()=>{ye(g)},ae=(o,f,_)=>{if(d=="secondaryMenu"&&a&&l&&g&&o.id){let L=new URL(`${a}/v1/casino/groups/${l}/${o.id}/subGroups?language=${g}`);fetch(L.href).then(I=>I.json()).then(I=>{I.index=f,r(10,j=j.concat(I)),y=="false"&&window.postMessage({type:n,itemId:o.id,index:f,item:o},window.location.href);const A=[];j.map(ge=>(ge.items.forEach(q=>{A.find(pe=>q.id==pe)||A.push(q.id)}),A.flat())),window.postMessage({type:"SubgroupsIds",subGroupsIds:A},window.location.href)}).then(()=>{H.querySelectorAll(".DropDown")&&B()})}d=="headerMain"&&window.postMessage({type:n,item:o},window.location.href)},B=()=>{const o=H.querySelectorAll(".DropDown");document.activeElement.blur(),w.classList.add("isScrolling");for(let f=0;f<o.length;f++)o[f].style.transform="translateX(-"+w.scrollLeft+"px)";w.classList.remove("isScrolling")},ie=()=>{T.forEach((o,f)=>{var _;((_=o==null?void 0:o.subGroups)==null?void 0:_.count)>0&&(r(11,N[f]=!0,N),ae(o,f))})},le=o=>{let f="";return o.id==="LOBBY"?f=b:o.id==="MYGAMES"&&(f=E),o.icon||f};t.onMount(()=>(window.addEventListener("message",G,!1),"ontouchstart"in document.documentElement&&(document.documentElement.className+=" touch-device"),setTimeout(()=>{w.addEventListener("scroll",B)},500),window.postMessage({type:"SliderLoaded",identity:m}),()=>{window.removeEventListener("message",G),H.removeEventListener("scroll",B)}));const se=()=>x(),ce=(o,f,_,L,I)=>{W(o,f,_,L,"secondary"),I.stopPropagation()},ue=(o,f,_)=>{W(o,f,null,null,"main"),_.preventDefault()};function de(o){t.binding_callbacks[o?"unshift":"push"](()=>{H=o,r(5,H)})}function fe(o){t.binding_callbacks[o?"unshift":"push"](()=>{w=o,r(12,w)})}const he=()=>z();function me(o){t.binding_callbacks[o?"unshift":"push"](()=>{M=o,r(4,M)})}return i.$$set=o=>{"endpoint"in o&&r(17,a=o.endpoint),"datasource"in o&&r(18,l=o.datasource),"onclickeventname"in o&&r(19,s=o.onclickeventname),"actionevent"in o&&r(20,n=o.actionevent),"favoritesnumber"in o&&r(21,c=o.favoritesnumber),"location"in o&&r(0,d=o.location),"clientstyling"in o&&r(22,v=o.clientstyling),"clientstylingurl"in o&&r(23,p=o.clientstylingurl),"identity"in o&&r(24,m=o.identity),"translationurl"in o&&r(25,C=o.translationurl),"isprimarymenu"in o&&r(26,k=o.isprimarymenu),"issecondarymenu"in o&&r(27,F=o.issecondarymenu),"lang"in o&&r(28,g=o.lang),"activeindex"in o&&r(1,u=o.activeindex),"showsubgroups"in o&&r(2,y=o.showsubgroups),"categoriesicon"in o&&r(3,h=o.categoriesicon),"lobbyiconimage"in o&&r(29,b=o.lobbyiconimage),"mygamesiconimage"in o&&r(30,E=o.mygamesiconimage),"mbsource"in o&&r(31,S=o.mbsource)},i.$$.update=()=>{i.$$.dirty[0]&2,i.$$.dirty[0]&33554432&&C&&ne(),i.$$.dirty[0]&4194320&&v&&M&&t.setClientStyling(M,v),i.$$.dirty[0]&8388624&&p&&M&&t.setClientStylingURL(M,p),i.$$.dirty[0]&16|i.$$.dirty[1]&1&&S&&M&&t.setStreamStyling(M,`${S}.Style`),i.$$.dirty[0]&268435456&&g&&oe()},[d,u,y,h,M,H,D,R,O,T,j,N,w,W,x,z,le,a,l,s,n,c,v,p,m,C,k,F,g,b,E,S,se,ce,ue,de,fe,he,me]}class re extends t.SvelteComponent{constructor(e){super(),t.init(this,e,ke,ve,t.safe_not_equal,{endpoint:17,datasource:18,onclickeventname:19,actionevent:20,favoritesnumber:21,location:0,clientstyling:22,clientstylingurl:23,identity:24,translationurl:25,isprimarymenu:26,issecondarymenu:27,lang:28,activeindex:1,showsubgroups:2,categoriesicon:3,lobbyiconimage:29,mygamesiconimage:30,mbsource:31},we,[-1,-1])}get endpoint(){return this.$$.ctx[17]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get datasource(){return this.$$.ctx[18]}set datasource(e){this.$$set({datasource:e}),t.flush()}get onclickeventname(){return this.$$.ctx[19]}set onclickeventname(e){this.$$set({onclickeventname:e}),t.flush()}get actionevent(){return this.$$.ctx[20]}set actionevent(e){this.$$set({actionevent:e}),t.flush()}get favoritesnumber(){return this.$$.ctx[21]}set favoritesnumber(e){this.$$set({favoritesnumber:e}),t.flush()}get location(){return this.$$.ctx[0]}set location(e){this.$$set({location:e}),t.flush()}get clientstyling(){return this.$$.ctx[22]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[23]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get identity(){return this.$$.ctx[24]}set identity(e){this.$$set({identity:e}),t.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get isprimarymenu(){return this.$$.ctx[26]}set isprimarymenu(e){this.$$set({isprimarymenu:e}),t.flush()}get issecondarymenu(){return this.$$.ctx[27]}set issecondarymenu(e){this.$$set({issecondarymenu:e}),t.flush()}get lang(){return this.$$.ctx[28]}set lang(e){this.$$set({lang:e}),t.flush()}get activeindex(){return this.$$.ctx[1]}set activeindex(e){this.$$set({activeindex:e}),t.flush()}get showsubgroups(){return this.$$.ctx[2]}set showsubgroups(e){this.$$set({showsubgroups:e}),t.flush()}get categoriesicon(){return this.$$.ctx[3]}set categoriesicon(e){this.$$set({categoriesicon:e}),t.flush()}get lobbyiconimage(){return this.$$.ctx[29]}set lobbyiconimage(e){this.$$set({lobbyiconimage:e}),t.flush()}get mygamesiconimage(){return this.$$.ctx[30]}set mygamesiconimage(e){this.$$set({mygamesiconimage:e}),t.flush()}get mbsource(){return this.$$.ctx[31]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(re,{endpoint:{},datasource:{},onclickeventname:{},actionevent:{},favoritesnumber:{},location:{},clientstyling:{},clientstylingurl:{},identity:{},translationurl:{},isprimarymenu:{type:"Boolean"},issecondarymenu:{type:"Boolean"},lang:{},activeindex:{},showsubgroups:{},categoriesicon:{},lobbyiconimage:{},mygamesiconimage:{},mbsource:{}},[],[],!0);exports.default=re;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as Z, Q as Ne, a as Re, S as Te, i as je, f as C, c as Be, s as Oe, b as We, e as F, w as j, y as f, d as D, z as p, A as P, G as oe, j as L, O as ze, o as Ge,
|
|
1
|
+
import { $ as Z, Q as Ne, a as Re, S as Te, i as je, f as C, c as Be, s as Oe, b as We, e as F, w as j, y as f, d as D, z as p, A as P, G as oe, j as L, O as ze, o as Ge, v as z, U as Y, Y as pe, I as ie, n as X, p as xe, q as Ye, r as qe, Z as we, F as Ue, x as J, E as V } from "./CasinoCalendar-JGC8iAmb.js";
|
|
2
2
|
function Pe({ withLocale: n, translations: e }) {
|
|
3
3
|
Z.subscribe((t) => {
|
|
4
4
|
t == null && (Ne.set(e), Z.set(n));
|
|
@@ -602,10 +602,10 @@ function Ve(n, e, t) {
|
|
|
602
602
|
n.$$.dirty[0] & /*activeindex*/
|
|
603
603
|
2, n.$$.dirty[0] & /*translationurl*/
|
|
604
604
|
33554432 && y && ye(), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
605
|
-
4194320 && I && A &&
|
|
606
|
-
8388624 && w && A &&
|
|
605
|
+
4194320 && I && A && xe(A, I), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
606
|
+
8388624 && w && A && Ye(A, w), n.$$.dirty[0] & /*customStylingContainer*/
|
|
607
607
|
16 | n.$$.dirty[1] & /*mbsource*/
|
|
608
|
-
1 && H && A &&
|
|
608
|
+
1 && H && A && qe(A, `${H}.Style`), n.$$.dirty[0] & /*lang*/
|
|
609
609
|
268435456 && h && be();
|
|
610
610
|
}, [
|
|
611
611
|
u,
|