@everymatrix/casino-page-nd 1.60.2 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-DEC4kbu7.cjs → CasinoCalendar-3HhwEwWn.cjs} +1 -1
- package/components/{CasinoCalendar-DNaLXH6n.js → CasinoCalendar-ChriIGYO.js} +14 -14
- package/components/{CasinoCalendar-Ckt1PYIP.js → CasinoCalendar-DWEsWkC3.js} +14 -14
- package/components/CasinoCalendarDailyDetails-BB1reOve.js +694 -0
- package/components/CasinoCalendarDailyDetails-C-hKLl6t.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-CRaNL0XV.js +694 -0
- package/components/CasinoCalendarDailyItem-B0UT8hgo.cjs +1 -0
- package/components/CasinoCalendarDailyItem-CbJJliRk.js +307 -0
- package/components/CasinoCalendarDailyItem-mVRnCWmO.js +307 -0
- package/components/{CasinoCollectionsProviders-GaeLz6Pl.js → CasinoCollectionsProviders-5G5A16B1.js} +178 -177
- package/components/CasinoCollectionsProviders-C9JSj4NQ.cjs +1 -0
- package/components/{CasinoCollectionsProviders-CMFOwKOw.js → CasinoCollectionsProviders-CG0Cf517.js} +189 -188
- package/components/{CasinoFavoritesSectionNd-BoHMwhZB.js → CasinoFavoritesSectionNd-BrF_H-jM.js} +18 -18
- package/components/{CasinoFavoritesSectionNd-CR6Z6CZh.cjs → CasinoFavoritesSectionNd-C-aG0Nbj.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-B4D0hl5E.js → CasinoFavoritesSectionNd-XuAM6kcb.js} +18 -18
- package/components/CasinoFilter-BDAzYLsu.cjs +1 -0
- package/components/{CasinoFilter-Cf6wLS_J.js → CasinoFilter-BlHzVrSF.js} +96 -94
- package/components/{CasinoFilter-DT_mfIxJ.js → CasinoFilter-CCublYFB.js} +50 -50
- package/components/{CasinoGameThumbnailNd-DSQKsz0_.js → CasinoGameThumbnailNd-C5CRuXkP.js} +483 -482
- package/components/{CasinoGameThumbnailNd-CNU5-5m5.js → CasinoGameThumbnailNd-Pq4j578u.js} +482 -481
- package/components/{CasinoGameThumbnailNd-BD54f2RF.cjs → CasinoGameThumbnailNd-oswzXsH9.cjs} +5 -5
- package/components/{CasinoGamesCategorySectionNd-Bd6gGgEh.js → CasinoGamesCategorySectionNd-CEarc4eH.js} +5 -5
- package/components/{CasinoGamesCategorySectionNd-COY2wvXt.cjs → CasinoGamesCategorySectionNd-Cf6viErn.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-BuRFIJtK.js → CasinoGamesCategorySectionNd-Vz0qZpVS.js} +5 -5
- package/components/CasinoJackpotBanner-B-x_97Zl.js +694 -0
- package/components/CasinoJackpotBanner-CUYq7rBr.js +698 -0
- package/components/CasinoJackpotBanner-CUg-WrqE.cjs +1 -0
- package/components/{CasinoLastPlayedSectionNd-CUYvupcs.js → CasinoLastPlayedSectionNd-Bgkq4YL-.js} +16 -16
- package/components/{CasinoLastPlayedSectionNd-gaEfxq1v.js → CasinoLastPlayedSectionNd-Bo_UtsL3.js} +16 -16
- package/components/{CasinoLastPlayedSectionNd-ByFFS5o5.cjs → CasinoLastPlayedSectionNd-DcaN4Vzb.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-CPT_t8bb.js → CasinoMostPlayedSectionNd-DUgVpjBs.js} +18 -18
- package/components/{CasinoMostPlayedSectionNd--2wP0mHF.cjs → CasinoMostPlayedSectionNd-DjmOQABq.cjs} +1 -1
- package/components/{CasinoMostPlayedSectionNd-tJvnsfWN.js → CasinoMostPlayedSectionNd-HXXtVBuD.js} +18 -18
- package/components/{CasinoMyGamesNd-Bw9Naqo0.js → CasinoMyGamesNd-Bawo4XDt.js} +8 -8
- package/components/{CasinoMyGamesNd-Cj5jIBR3.js → CasinoMyGamesNd-Cn_V8Q9P.js} +7 -7
- package/components/{CasinoMyGamesNd-D5WCuqu_.cjs → CasinoMyGamesNd-Dkkcjv_e.cjs} +1 -1
- package/components/{CasinoPageNd-DMSwp1df.js → CasinoPageNd-8fZWb0Ox.js} +11 -11
- package/components/{CasinoPageNd-CCNhv4O2.js → CasinoPageNd-DFAfIl-N.js} +11 -11
- package/components/{CasinoPageNd-CUlbbH3Q.cjs → CasinoPageNd-DrbHpi5Q.cjs} +1 -1
- package/components/{CasinoRandomGame-FAQztl67.js → CasinoRandomGame-Bkmr4jqm.js} +184 -183
- package/components/CasinoRandomGame-CqD9l308.cjs +2 -0
- package/components/{CasinoRandomGame-CTVNBAys.js → CasinoRandomGame-DjPcc5_O.js} +145 -144
- package/components/{CasinoSearchNd-C9Fgrs2S.js → CasinoSearchNd-BXamPqpq.js} +36 -36
- package/components/{CasinoSearchNd-aaFbQbMI.cjs → CasinoSearchNd-C9re33yY.cjs} +1 -1
- package/components/{CasinoSearchNd-CebPzpLU.js → CasinoSearchNd-CqUgLjtY.js} +36 -36
- package/components/{CasinoSort-jHGGKT4T.js → CasinoSort-DRjIutGv.js} +4 -4
- package/components/{CasinoSort-CD6jHMIw.cjs → CasinoSort-DdDbgCmx.cjs} +1 -1
- package/components/{CasinoSort-D-E5cV7V.js → CasinoSort-Ddpf-_tf.js} +4 -4
- package/components/CasinoWinners-C5CqUsG7.cjs +1 -0
- package/components/{CasinoWinners-BnSu5nnB.js → CasinoWinners-CyLWCqte.js} +109 -108
- package/components/{CasinoWinners-BpeW82lE.js → CasinoWinners-S1GnRcyb.js} +110 -109
- package/components/{GeneralAnimationLoading-vwMxZgQG.cjs → GeneralAnimationLoading-DKjMWmUN.cjs} +1 -1
- package/components/{GeneralAnimationLoading-Bl-AgLq7.js → GeneralAnimationLoading-DMWzaWgM.js} +6 -6
- package/components/{GeneralAnimationLoading-oiUh9Rwe.js → GeneralAnimationLoading-mOewAPee.js} +6 -6
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-4b17CI_n.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-Cgk0KVAu.js → app-globals-0f993ce5-DfNOCk8l.js} +3 -1
- package/stencil/{casino-play-random-game-CLSQBVzD.js → casino-play-random-game-6EpPs13y.js} +3 -8
- package/stencil/{casino-play-random-game-Dm8A9dTR.js → casino-play-random-game-BUvMKyaw.js} +6 -11
- package/stencil/{casino-play-random-game-CdZKN03s.cjs → casino-play-random-game-IjQER553.cjs} +2 -2
- package/stencil/{index-ab3202d6-OPh7hJp9.js → index-ab3202d6-9zuW-dLG.js} +1 -1
- package/stencil/{index-ab3202d6-hGs51skN.js → index-ab3202d6-CGVciVSL.js} +1 -1
- package/stencil/{index-ab3202d6-C1hgKWrC.cjs → index-ab3202d6-c7Vf1NJ1.cjs} +1 -1
- package/stencil/{index-b2193545-MPc38oBt.js → index-b2193545-CGYrx6SV.js} +1 -1
- package/stencil/{index-b2193545-DCd44oUP.cjs → index-b2193545-DU7jU8hT.cjs} +1 -1
- package/stencil/{index-b2193545-lFMF9wMV.js → index-b2193545-k_uiu1dU.js} +1 -1
- package/stencil/index-b7bbd57e-BMsMsYAr.js +550 -0
- package/stencil/index-b7bbd57e-CPxyz2y0.js +534 -0
- package/stencil/index-b7bbd57e-CiQAmzc6.cjs +1 -0
- package/stencil/ui-image-38c3c15f--IPbitii.js +39 -0
- package/stencil/ui-image-38c3c15f-CQXMTl7T.js +39 -0
- package/stencil/ui-image-38c3c15f-Dv8v2u8d.cjs +1 -0
- package/stencil/ui-image-CV8AJ9cY.js +29 -0
- package/stencil/ui-image-DG3xEaHN.js +11 -0
- package/stencil/ui-image-LuWVcxjH.cjs +1 -0
- package/stencil/{ui-skeleton-0M0DsgcH.js → ui-skeleton-22AocHRT.js} +8 -8
- package/stencil/{ui-skeleton-ea659b95-Denrk3xZ.js → ui-skeleton-6d1c12ae-4HBL8qol.js} +2 -2
- package/stencil/{ui-skeleton-ea659b95-DoJviCLo.cjs → ui-skeleton-6d1c12ae-C3POR2WV.cjs} +2 -2
- package/stencil/{ui-skeleton-ea659b95-Doo7piTc.js → ui-skeleton-6d1c12ae-f1sFu8zZ.js} +2 -2
- package/stencil/{ui-skeleton-DGBcSK-r.js → ui-skeleton-CMD3xF0X.js} +5 -5
- package/stencil/{ui-skeleton-Dt8jS6rz.cjs → ui-skeleton-Di9b-pPK.cjs} +1 -1
- package/components/CasinoCalendarDailyDetails-BdhBt4HO.js +0 -693
- package/components/CasinoCalendarDailyDetails-DOhd-4ZT.js +0 -693
- package/components/CasinoCalendarDailyDetails-EinwK-x0.cjs +0 -1
- package/components/CasinoCalendarDailyItem-254MG7d4.js +0 -306
- package/components/CasinoCalendarDailyItem-CEbe-dts.cjs +0 -1
- package/components/CasinoCalendarDailyItem-I0d1EuRW.js +0 -306
- package/components/CasinoCollectionsProviders-CYXVu8jO.cjs +0 -1
- package/components/CasinoFilter-DkRFodLT.cjs +0 -1
- package/components/CasinoJackpotBanner-Dt56Ssbv.js +0 -697
- package/components/CasinoJackpotBanner-QjY0RFqn.js +0 -693
- package/components/CasinoJackpotBanner-W78-HVH9.cjs +0 -1
- package/components/CasinoRandomGame-CH4DPGtX.cjs +0 -2
- package/components/CasinoWinners-DM9Vf73b.cjs +0 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as De, $ as He, S as qe, i as We, s as Oe, f as L, b as Ue, n as ie, d as j,
|
|
2
|
-
import "./CasinoGamesCategorySectionNd-
|
|
3
|
-
import { h as $ } from "./CasinoGameThumbnailNd-
|
|
1
|
+
import { a as De, $ as He, S as qe, i as We, s as Oe, f as L, b as Ue, n as ie, d as j, O as Ve, r as f, T as ce, h as E, p as S, A as Z, j as y, B as N, F as ue, R as te, k as Je, o as Ze, m as D, q as H, C as he, v as de, w as Ye, G as Re, E as u, J as Ke, K as Xe, L as Qe, M as $e, N as et } from "./CasinoCalendar-ChriIGYO.js";
|
|
2
|
+
import "./CasinoGamesCategorySectionNd-CEarc4eH.js";
|
|
3
|
+
import { h as $ } from "./CasinoGameThumbnailNd-C5CRuXkP.js";
|
|
4
4
|
function me(a, e) {
|
|
5
5
|
De(a, e);
|
|
6
6
|
}
|
|
@@ -208,7 +208,7 @@ function pe(a) {
|
|
|
208
208
|
(a[13] ? "NotVisible" : ""));
|
|
209
209
|
},
|
|
210
210
|
m(i, c) {
|
|
211
|
-
|
|
211
|
+
E(i, e, c), S(e, n), l || (s = Z(
|
|
212
212
|
e,
|
|
213
213
|
"click",
|
|
214
214
|
/*click_handler_1*/
|
|
@@ -256,7 +256,7 @@ function nt(a) {
|
|
|
256
256
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
257
257
|
},
|
|
258
258
|
m(h, m) {
|
|
259
|
-
i && i.m(h, m),
|
|
259
|
+
i && i.m(h, m), E(h, e, m), E(h, t, m), c && c.m(t, null), S(t, n), g && g.m(t, null);
|
|
260
260
|
},
|
|
261
261
|
p(h, m) {
|
|
262
262
|
s === (s = l(h)) && i ? i.p(h, m) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
@@ -281,7 +281,7 @@ function rt(a) {
|
|
|
281
281
|
e = y("p"), n = H(t), f(e, "class", "LoadingContent");
|
|
282
282
|
},
|
|
283
283
|
m(r, l) {
|
|
284
|
-
|
|
284
|
+
E(r, e, l), S(e, n);
|
|
285
285
|
},
|
|
286
286
|
p(r, l) {
|
|
287
287
|
l[0] & /*$_*/
|
|
@@ -303,7 +303,7 @@ function ot(a) {
|
|
|
303
303
|
e = y("p"), n = H(t), f(e, "class", "SearchMessage");
|
|
304
304
|
},
|
|
305
305
|
m(r, l) {
|
|
306
|
-
|
|
306
|
+
E(r, e, l), S(e, n);
|
|
307
307
|
},
|
|
308
308
|
p(r, l) {
|
|
309
309
|
l[0] & /*$_*/
|
|
@@ -328,7 +328,7 @@ function st(a) {
|
|
|
328
328
|
n && n.c(), e = N(), r && r.c(), t = Re();
|
|
329
329
|
},
|
|
330
330
|
m(l, s) {
|
|
331
|
-
n && n.m(l, s),
|
|
331
|
+
n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, t, s);
|
|
332
332
|
},
|
|
333
333
|
p(l, s) {
|
|
334
334
|
/*searchArray*/
|
|
@@ -350,7 +350,7 @@ function _e(a) {
|
|
|
350
350
|
e = y("p"), n = H(t), f(e, "class", "SearchMessage");
|
|
351
351
|
},
|
|
352
352
|
m(r, l) {
|
|
353
|
-
|
|
353
|
+
E(r, e, l), S(e, n);
|
|
354
354
|
},
|
|
355
355
|
p(r, l) {
|
|
356
356
|
l[0] & /*$_*/
|
|
@@ -376,7 +376,7 @@ function Se(a) {
|
|
|
376
376
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
377
377
|
},
|
|
378
378
|
m(c, g) {
|
|
379
|
-
|
|
379
|
+
E(c, e, g), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
|
|
380
380
|
},
|
|
381
381
|
p(c, g) {
|
|
382
382
|
/*notfoundicon*/
|
|
@@ -398,7 +398,7 @@ function be(a) {
|
|
|
398
398
|
e = y("div"), e.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>', f(e, "class", "SearchErrorIcon");
|
|
399
399
|
},
|
|
400
400
|
m(t, n) {
|
|
401
|
-
|
|
401
|
+
E(t, e, n);
|
|
402
402
|
},
|
|
403
403
|
d(t) {
|
|
404
404
|
t && j(e);
|
|
@@ -421,7 +421,7 @@ function we(a) {
|
|
|
421
421
|
m(r, l) {
|
|
422
422
|
for (let s = 0; s < n.length; s += 1)
|
|
423
423
|
n[s] && n[s].m(r, l);
|
|
424
|
-
|
|
424
|
+
E(r, e, l);
|
|
425
425
|
},
|
|
426
426
|
p(r, l) {
|
|
427
427
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
@@ -530,7 +530,7 @@ function ve(a) {
|
|
|
530
530
|
);
|
|
531
531
|
},
|
|
532
532
|
m(d, p) {
|
|
533
|
-
|
|
533
|
+
E(d, e, p);
|
|
534
534
|
},
|
|
535
535
|
p(d, p) {
|
|
536
536
|
p[0] & /*endpoint*/
|
|
@@ -658,7 +658,7 @@ function ke(a) {
|
|
|
658
658
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
659
659
|
},
|
|
660
660
|
m(w, d) {
|
|
661
|
-
|
|
661
|
+
E(w, e, d), m && m.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, g);
|
|
662
662
|
},
|
|
663
663
|
p(w, d) {
|
|
664
664
|
/*notfoundicon*/
|
|
@@ -682,7 +682,7 @@ function ye(a) {
|
|
|
682
682
|
e = y("div"), e.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>', f(e, "class", "SearchErrorIcon");
|
|
683
683
|
},
|
|
684
684
|
m(t, n) {
|
|
685
|
-
|
|
685
|
+
E(t, e, n);
|
|
686
686
|
},
|
|
687
687
|
d(t) {
|
|
688
688
|
t && j(e);
|
|
@@ -694,13 +694,13 @@ function lt(a) {
|
|
|
694
694
|
/*cancelbutton*/
|
|
695
695
|
a[10] === "true" && pe(a)
|
|
696
696
|
);
|
|
697
|
-
function
|
|
697
|
+
function I(b, T) {
|
|
698
698
|
return (
|
|
699
699
|
/*isLoading*/
|
|
700
700
|
b[18] ? rt : nt
|
|
701
701
|
);
|
|
702
702
|
}
|
|
703
|
-
let M =
|
|
703
|
+
let M = I(a), R = M(a);
|
|
704
704
|
return {
|
|
705
705
|
c() {
|
|
706
706
|
e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" 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="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ue("svg"), m = ue("path"), d = N(), v && v.c(), U = N(), P = y("div"), q = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
@@ -714,7 +714,7 @@ function lt(a) {
|
|
|
714
714
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
715
715
|
},
|
|
716
716
|
m(b, T) {
|
|
717
|
-
|
|
717
|
+
E(b, e, T), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ce(
|
|
718
718
|
s,
|
|
719
719
|
/*searchValue*/
|
|
720
720
|
a[12]
|
|
@@ -762,7 +762,7 @@ function lt(a) {
|
|
|
762
762
|
8192 && p !== (p = "Search " + /*searchCancelled*/
|
|
763
763
|
(b[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
|
|
764
764
|
1024 && A !== (A = /*cancelbutton*/
|
|
765
|
-
b[10] != "true" ? "OverlayCancel" : "") && f(P, "class", A), M === (M =
|
|
765
|
+
b[10] != "true" ? "OverlayCancel" : "") && f(P, "class", A), M === (M = I(b)) && R ? R.p(b, T) : (R.d(1), R = M(b), R && (R.c(), R.m(e, null)));
|
|
766
766
|
},
|
|
767
767
|
i: ie,
|
|
768
768
|
o: ie,
|
|
@@ -775,7 +775,7 @@ let it = 50;
|
|
|
775
775
|
function ct(a, e, t) {
|
|
776
776
|
let n;
|
|
777
777
|
Je(a, et, (o) => t(21, n = o));
|
|
778
|
-
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: w = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: P = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [],
|
|
778
|
+
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: w = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: P = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], I = [], M = {}, R = "", b, T = !0, V = !1, z = !1, x, Y = !1, K, X, ae = [];
|
|
779
779
|
const Ce = () => {
|
|
780
780
|
fetch(P).then((_) => _.json()).then((_) => {
|
|
781
781
|
Object.keys(_).forEach((k) => {
|
|
@@ -789,7 +789,7 @@ function ct(a, e, t) {
|
|
|
789
789
|
me(o, ge[o]);
|
|
790
790
|
});
|
|
791
791
|
const ne = (o) => {
|
|
792
|
-
o.data && o.data.type == "SearchedItemClicked" &&
|
|
792
|
+
o.data && o.data.type == "SearchedItemClicked" && Ie(o.data.gameId), o.data.type == "UserSessionID" && (t(19, K = o.data.session), t(20, X = o.data.userid), t(32, Y = !0)), o.data.type == "CategoryChange" && Q();
|
|
793
793
|
}, re = () => {
|
|
794
794
|
if (t(13, T = !1), t(17, V = !0), r && l && c && R.length < 2) {
|
|
795
795
|
t(15, v = []);
|
|
@@ -798,14 +798,14 @@ function ct(a, e, t) {
|
|
|
798
798
|
let k = [], C = 0, F = _.length;
|
|
799
799
|
if (F > 0) {
|
|
800
800
|
for (C = 0; C < F; C++) {
|
|
801
|
-
let
|
|
802
|
-
|
|
801
|
+
let G = new URL(`${r}/v1/casino/games/${_[C]}`);
|
|
802
|
+
G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", te(O)), k.push(Te(G, _[C]));
|
|
803
803
|
}
|
|
804
|
-
Promise.all(k).then((
|
|
805
|
-
|
|
804
|
+
Promise.all(k).then((G) => {
|
|
805
|
+
G = G.filter(function(B) {
|
|
806
806
|
return !!B;
|
|
807
|
-
}), t(15, v =
|
|
808
|
-
}).catch((
|
|
807
|
+
}), t(15, v = G.map((B) => (B.isFavorite = oe(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
|
|
808
|
+
}).catch((G) => {
|
|
809
809
|
J("searchError", "SearchWidget");
|
|
810
810
|
});
|
|
811
811
|
}
|
|
@@ -837,21 +837,21 @@ function ct(a, e, t) {
|
|
|
837
837
|
fetch(o.href, _).then((k) => k.json()).then((k) => {
|
|
838
838
|
t(18, z = !1), ae = k.items.map((C) => C.id);
|
|
839
839
|
});
|
|
840
|
-
},
|
|
840
|
+
}, Ee = () => {
|
|
841
841
|
t(32, Y = !0), t(19, K = s), t(20, X = i);
|
|
842
|
-
}, oe = (o) => ae.findIndex((_) => _ == o) !== -1,
|
|
842
|
+
}, oe = (o) => ae.findIndex((_) => _ == o) !== -1, Ge = (o) => {
|
|
843
843
|
if (o?.length === 0)
|
|
844
844
|
return "";
|
|
845
845
|
let _, k = 99999999999, C;
|
|
846
846
|
const F = new Date(Date.now());
|
|
847
|
-
return o.forEach((
|
|
848
|
-
const Be = new Date(
|
|
847
|
+
return o.forEach((G, B) => {
|
|
848
|
+
const Be = new Date(G.schedules[0].startTime), ee = new Date(G.schedules[0].endTime);
|
|
849
849
|
$(ee).diff(F) < k && (k = $(ee).diff(F), C = B), $(F).isAfter(Be) && $(F).isBefore(ee) && (_ = o[C].name);
|
|
850
850
|
}), _;
|
|
851
|
-
},
|
|
852
|
-
if (
|
|
851
|
+
}, Ie = (o) => {
|
|
852
|
+
if (I = localStorage.getItem("searchedGamesWds_casino"), I ? I = I.split(",") : I = [], I.indexOf(o) === -1) {
|
|
853
853
|
let _;
|
|
854
|
-
|
|
854
|
+
I.unshift(o), _ = I.join(","), localStorage.setItem("searchedGamesWds_casino", _);
|
|
855
855
|
}
|
|
856
856
|
}, Q = () => {
|
|
857
857
|
t(12, R = ""), t(13, T = !0), t(18, z = !1), t(15, v = []), t(17, V = !1), le(V);
|
|
@@ -900,7 +900,7 @@ function ct(a, e, t) {
|
|
|
900
900
|
a.$$.dirty[0] & /*lang*/
|
|
901
901
|
2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
|
|
902
902
|
1 && P && Ce(), a.$$.dirty[0] & /*session, userid*/
|
|
903
|
-
1610612736 && s && i &&
|
|
903
|
+
1610612736 && s && i && Ee(), a.$$.dirty[0] & /*showfavorites*/
|
|
904
904
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
905
905
|
2 && A && Y && je(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
906
906
|
16392 && h && x && Ke(x, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
@@ -932,7 +932,7 @@ function ct(a, e, t) {
|
|
|
932
932
|
O,
|
|
933
933
|
re,
|
|
934
934
|
Fe,
|
|
935
|
-
|
|
935
|
+
Ge,
|
|
936
936
|
Q,
|
|
937
937
|
se,
|
|
938
938
|
l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-DEC4kbu7.cjs");require("./CasinoGamesCategorySectionNd-COY2wvXt.cjs");const W=require("./CasinoGameThumbnailNd-BD54f2RF.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={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:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",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 Ce(n){e.append_styles(n,"svelte-2xbwo7","*,*::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:30px 40px;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;margin-bottom:20px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-white, #FFF);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));padding-right:28px}.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{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px 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:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E))}.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 $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return je;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),g=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),g&&g.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),g&&g.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?g?g.p(d,m):(g=oe(d),g.c(),g.m(a,null)):g&&(g.d(1),g=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),g&&g.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function je(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,g){e.insert(u,t,g),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,g){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),g[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),g[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,g,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",g=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,f){e.insert(h,t,f)},p(h,f){var G;f[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),f[0]&524288&&e.set_custom_element_data(t,"session",h[19]),f[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),f[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),f[0]&2&&e.set_custom_element_data(t,"lang",h[1]),f[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),f[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),f[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),f[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),f[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),f[0]&32768&&c!==(c=((G=h[53].advancedTags)==null?void 0:G.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),f[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),f[0]&32768&&g!==(g=h[53].id)&&e.set_custom_element_data(t,"gameid",g),f[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),f[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),f[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),f[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),f[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),f[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),f[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),f[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),f[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),f[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",g,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),g=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,g)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(g,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ge(n){let t,a,r,s,i,l,c,u,g,d,m,S,h,f,G,T,I,z,N,P,b=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" 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="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),g=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),b&&b.c(),G=e.space(),T=e.element("div"),z=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"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(g,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",f="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",I=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,g),e.append(g,d),e.append(d,m),e.append(r,h),b&&b.m(r,null),e.append(t,G),e.append(t,T),e.append(t,z),v.m(t,null),n[37](t),N||(P=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(g,"click",n[35]),e.listen(T,"click",n[24])],N=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(g,"class",S),_[10]==="true"?b?b.p(_,R):(b=ee(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&8192&&f!==(f="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",f),R[0]&1024&&I!==(I=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",I),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),N=!1,e.run_all(P)}}}let Ie=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:g}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:f=""}=t,{gamepagemodalurl:G="true"}=t,{translationurl:T=""}=t,{showfavorites:I=""}=t,{cancelbutton:z="true"}=t,{notfoundicon:N="false"}=t,P=window.navigator.userAgent,b=[],F=[],E={},v="",_,R=!0,D=!1,L=!1,j,A=!1,B,q,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,q=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),w.push(he(C,p[k]))}Promise.all(w).then(C=>{C=C.filter(function(x){return!!x}),a(15,b=C.map(x=>(x.isFavorite=Z(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{z!="true"&&H()},de=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),w(k)})}),he=(o,p)=>new Promise((w,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),w(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),w(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":B}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),U=w.items.map(k=>k.id)})},ge=()=>{a(32,A=!0),a(19,B=l),a(20,q=c)},Z=o=>U.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,k;const y=new Date(Date.now());return o.forEach((C,x)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.hooks(O).diff(y)<w&&(w=W.hooks(O).diff(y),k=x),W.hooks(y).isAfter(ye)&&W.hooks(y).isBefore(O)&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),K(D)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function be(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const we=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,g=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,f=o.showgamename),"gamepagemodalurl"in o&&a(8,G=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,I=o.showfavorites),"cancelbutton"in o&&a(10,z=o.cancelbutton),"notfoundicon"in o&&a(11,N=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(P)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,b=p.items.map(w=>(w.isFavorite=Z(w.id),w)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&ge(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&I&&A&&me(),n.$$.dirty[0]&16392&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16400&&m&&j&&e.setClientStylingURL(j,m),n.$$.dirty[0]&16388&&g&&j&&e.setStreamStyling(j,`${g}.Style`)},[s,u,g,d,m,S,h,f,G,I,z,N,v,R,j,b,_,D,L,B,q,r,P,J,ue,fe,H,Y,i,l,c,T,A,Se,be,we,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Ge,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-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 mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}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[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-3HhwEwWn.cjs");require("./CasinoGamesCategorySectionNd-Cf6viErn.cjs");const W=require("./CasinoGameThumbnailNd-oswzXsH9.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={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:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",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 Ce(n){e.append_styles(n,"svelte-2xbwo7","*,*::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:30px 40px;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;margin-bottom:20px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-white, #FFF);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));padding-right:28px}.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{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px 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:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E))}.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 $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return je;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),g=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),g&&g.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),g&&g.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?g?g.p(d,m):(g=oe(d),g.c(),g.m(a,null)):g&&(g.d(1),g=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),g&&g.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function je(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,g){e.insert(u,t,g),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,g){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),g[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),g[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,g,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",g=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,f){e.insert(h,t,f)},p(h,f){var G;f[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),f[0]&524288&&e.set_custom_element_data(t,"session",h[19]),f[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),f[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),f[0]&2&&e.set_custom_element_data(t,"lang",h[1]),f[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),f[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),f[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),f[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),f[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),f[0]&32768&&c!==(c=((G=h[53].advancedTags)==null?void 0:G.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),f[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),f[0]&32768&&g!==(g=h[53].id)&&e.set_custom_element_data(t,"gameid",g),f[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),f[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),f[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),f[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),f[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),f[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),f[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),f[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),f[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),f[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",g,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),g=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,g)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(g,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){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(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function Ge(n){let t,a,r,s,i,l,c,u,g,d,m,S,h,f,G,T,I,z,N,P,b=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" 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="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),g=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),b&&b.c(),G=e.space(),T=e.element("div"),z=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"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(g,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",f="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",I=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,g),e.append(g,d),e.append(d,m),e.append(r,h),b&&b.m(r,null),e.append(t,G),e.append(t,T),e.append(t,z),v.m(t,null),n[37](t),N||(P=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(g,"click",n[35]),e.listen(T,"click",n[24])],N=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(g,"class",S),_[10]==="true"?b?b.p(_,R):(b=ee(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&8192&&f!==(f="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",f),R[0]&1024&&I!==(I=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",I),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),b&&b.d(),v.d(),n[37](null),N=!1,e.run_all(P)}}}let Ie=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:g}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:f=""}=t,{gamepagemodalurl:G="true"}=t,{translationurl:T=""}=t,{showfavorites:I=""}=t,{cancelbutton:z="true"}=t,{notfoundicon:N="false"}=t,P=window.navigator.userAgent,b=[],F=[],E={},v="",_,R=!0,D=!1,L=!1,j,A=!1,B,q,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(w=>{X(w,p[w])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,q=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,D=!0),s&&i&&u&&v.length<2){a(15,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),w.push(he(C,p[k]))}Promise.all(w).then(C=>{C=C.filter(function(x){return!!x}),a(15,b=C.map(x=>(x.isFavorite=Z(x.id),x))),b.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(D),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{z!="true"&&H()},de=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),w(k)})}),he=(o,p)=>new Promise((w,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),w(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),w(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":B}};fetch(o.href,p).then(w=>w.json()).then(w=>{a(18,L=!1),U=w.items.map(k=>k.id)})},ge=()=>{a(32,A=!0),a(19,B=l),a(20,q=c)},Z=o=>U.findIndex(p=>p==o)!==-1,fe=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,k;const y=new Date(Date.now());return o.forEach((C,x)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.hooks(O).diff(y)<w&&(w=W.hooks(O).diff(y),k=x),W.hooks(y).isAfter(ye)&&W.hooks(y).isBefore(O)&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,b=[]),a(17,D=!1),K(D)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function be(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const we=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{j=o,a(14,j)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,g=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,f=o.showgamename),"gamepagemodalurl"in o&&a(8,G=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,I=o.showfavorites),"cancelbutton"in o&&a(10,z=o.cancelbutton),"notfoundicon"in o&&a(11,N=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(P)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,b=p.items.map(w=>(w.isFavorite=Z(w.id),w)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&ge(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&I&&A&&me(),n.$$.dirty[0]&16392&&d&&j&&e.setClientStyling(j,d),n.$$.dirty[0]&16400&&m&&j&&e.setClientStylingURL(j,m),n.$$.dirty[0]&16388&&g&&j&&e.setStreamStyling(j,`${g}.Style`)},[s,u,g,d,m,S,h,f,G,I,z,N,v,R,j,b,_,D,L,B,q,r,P,J,ue,fe,H,Y,i,l,c,T,A,Se,be,we,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,Ge,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-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 mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}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[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
|