@everymatrix/casino-page 1.63.3 → 1.64.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-nljhPH7y.cjs → CasinoCalendar-B7HDzCMK.cjs} +4 -4
- package/components/{CasinoCalendar-BeZncquz.js → CasinoCalendar-Vkb-R-ZX.js} +114 -114
- package/components/{CasinoCalendar-CXqShP9K.js → CasinoCalendar-gzR0syWU.js} +200 -200
- package/components/CasinoCalendarDailyDetails-BSQbzcGH.js +567 -0
- package/components/CasinoCalendarDailyDetails-Bc0r0Ym3.cjs +1 -0
- package/components/CasinoCalendarDailyDetails-Cf_NBcOX.js +567 -0
- package/components/{CasinoCalendarDailyItem-CxNvFRRJ.js → CasinoCalendarDailyItem-CQSuNZtl.js} +45 -45
- package/components/CasinoCalendarDailyItem-DcM708OO.cjs +1 -0
- package/components/{CasinoCalendarDailyItem-1co5UCOc.js → CasinoCalendarDailyItem-Dn5Go7LC.js} +45 -45
- package/components/CasinoCollectionsProviders-58EKJRFt.cjs +1 -0
- package/components/{CasinoCollectionsProviders-Ddznc9st.js → CasinoCollectionsProviders-C2HckLP0.js} +106 -106
- package/components/{CasinoCollectionsProviders-DQ-lUWZN.js → CasinoCollectionsProviders-CQOBEpAZ.js} +113 -113
- package/components/{CasinoFavoritesSection-BhVw9fTI.js → CasinoFavoritesSection-CcsvkrzG.js} +23 -23
- package/components/{CasinoFavoritesSection-BskhwCG2.js → CasinoFavoritesSection-DfGJNbB8.js} +23 -23
- package/components/{CasinoFavoritesSection-B5JU_G95.cjs → CasinoFavoritesSection-W3TMRpsu.cjs} +1 -1
- package/components/{CasinoFilter-DffsJWQu.js → CasinoFilter-Bgdgnv7e.js} +115 -115
- package/components/{CasinoFilter-BZvjOUNz.cjs → CasinoFilter-Bmbi-NIl.cjs} +1 -1
- package/components/{CasinoFilter-Bhzt3ud6.js → CasinoFilter-DcGO-ipH.js} +112 -112
- package/components/{CasinoGameThumbnail-CETsOO6r.cjs → CasinoGameThumbnail-COIE0fub.cjs} +2 -2
- package/components/{CasinoGameThumbnail-CE_8NKFQ.js → CasinoGameThumbnail-DXQLodRv.js} +3 -3
- package/components/{CasinoGameThumbnail-nQ4bxAne.js → CasinoGameThumbnail-DiLl5Mrw.js} +3 -3
- package/components/CasinoGamesCategorySection-BG3iYeKb.js +3170 -0
- package/components/CasinoGamesCategorySection-D-NYfWaO.cjs +1 -0
- package/components/CasinoGamesCategorySection-DqEYl0Es.js +3202 -0
- package/components/{CasinoJackpotBanner-CqOh2dMq.cjs → CasinoJackpotBanner-BuVB-M1i.cjs} +1 -1
- package/components/{CasinoJackpotBanner-CLIfQAnS.js → CasinoJackpotBanner-CzYBUhxU.js} +91 -91
- package/components/{CasinoJackpotBanner-QiQ-hf00.js → CasinoJackpotBanner-emlytO5A.js} +98 -98
- package/components/{CasinoLastPlayedSection-DVsj0ERs.js → CasinoLastPlayedSection-DlkamFRO.js} +11 -11
- package/components/{CasinoLastPlayedSection-_PDk9mvl.cjs → CasinoLastPlayedSection-ESrwXqVH.cjs} +1 -1
- package/components/{CasinoLastPlayedSection-BGX5xL0g.js → CasinoLastPlayedSection-HNf5v3xk.js} +11 -11
- package/components/{CasinoMostPlayedSection-DK66ryn0.js → CasinoMostPlayedSection-Bj52NLlc.js} +19 -19
- package/components/{CasinoMostPlayedSection-C4jaxrRR.cjs → CasinoMostPlayedSection-DnCmD7jr.cjs} +1 -1
- package/components/{CasinoMostPlayedSection-_JLs4XMs.js → CasinoMostPlayedSection-ZxeqcEG3.js} +19 -19
- package/components/{CasinoMyGames-Bt6ErgXD.js → CasinoMyGames-B3n4oh-A.js} +54 -54
- package/components/{CasinoMyGames-Cdc-1_0d.cjs → CasinoMyGames-Ds1zAHP9.cjs} +1 -1
- package/components/{CasinoMyGames-CflxhNav.js → CasinoMyGames-vFSJZHR-.js} +50 -50
- package/components/{CasinoPage-DuqMGBRI.js → CasinoPage-ClUmsk8r.js} +175 -175
- package/components/{CasinoPage-DjqRL5f8.cjs → CasinoPage-Cy-fE9bq.cjs} +1 -1
- package/components/{CasinoPage-DAN37M6o.js → CasinoPage-DXlelFXN.js} +181 -181
- package/components/{CasinoRandomGame-DmhidQ0r.cjs → CasinoRandomGame-Bu3vRXKq.cjs} +2 -2
- package/components/{CasinoRandomGame-BmbrklCB.js → CasinoRandomGame-DCljkb0K.js} +70 -70
- package/components/{CasinoRandomGame-Bk1JbUlj.js → CasinoRandomGame-SWOJ-rEc.js} +70 -70
- package/components/{CasinoSearch-BKt2MLZ5.js → CasinoSearch-B1cDx372.js} +73 -73
- package/components/{CasinoSearch-BUb1cHOF.cjs → CasinoSearch-CPSvAdm9.cjs} +1 -1
- package/components/{CasinoSearch-K-yv43no.js → CasinoSearch-JYJ0TOYC.js} +75 -75
- package/components/{CasinoSort-JdpRMlFB.js → CasinoSort-CFb0U8jb.js} +32 -32
- package/components/{CasinoSort-Dd8ZEIdO.cjs → CasinoSort-DKVyUE8P.cjs} +1 -1
- package/components/{CasinoSort-BwF_FapK.js → CasinoSort-DfH2maWJ.js} +32 -32
- package/components/CasinoWinners-C9tJh4_L.cjs +1 -0
- package/components/{CasinoWinners-DndMyplw.js → CasinoWinners-D02DDUiQ.js} +131 -131
- package/components/{CasinoWinners-BQNqPkDs.js → CasinoWinners-DB-fwvGm.js} +132 -132
- package/components/{GeneralAnimationLoading-C8QANCXC.js → GeneralAnimationLoading-B2emFg0o.js} +6 -6
- package/components/{GeneralAnimationLoading-Cw3xHMcW.js → GeneralAnimationLoading-DCyTdaug.js} +6 -6
- package/components/{GeneralAnimationLoading-D60kNPCe.cjs → GeneralAnimationLoading-Gvq6az05.cjs} +1 -1
- package/es2015/casino-page.cjs +1 -1
- package/es2015/casino-page.js +1 -1
- package/esnext/casino-page.js +1 -1
- package/package.json +1 -1
- package/stencil/{casino-play-random-game-BYqESYAt.js → casino-play-random-game-BLl4u8GF.js} +8 -6
- package/stencil/{casino-play-random-game-QQFB7p9f.js → casino-play-random-game-C0BJMsSD.js} +8 -6
- package/stencil/{casino-play-random-game-cxzdDqDs.cjs → casino-play-random-game-Dkk0BTsb.cjs} +8 -6
- package/stencil/{index-97d17652-DYdohc-6.js → index-97d17652-BEnqZAxL.js} +1 -1
- package/stencil/{index-97d17652-_wmLv9aI.cjs → index-97d17652-D5_8Vwfn.cjs} +1 -1
- package/stencil/{index-97d17652-__SOROv4.js → index-97d17652-WK_DbPS4.js} +1 -1
- package/stencil/{index-ab3202d6-CvVYHCZs.js → index-ab3202d6-CZKlrnZf.js} +1 -1
- package/stencil/{index-ab3202d6-ClNgaMg-.js → index-ab3202d6-ClDKsCJv.js} +1 -1
- package/stencil/{index-ab3202d6-4wRb7_uS.cjs → index-ab3202d6-DFbwTHas.cjs} +1 -1
- package/stencil/{ui-image-NUzlC2fG.cjs → ui-image-DLXwOzO2.cjs} +1 -1
- package/stencil/{ui-image-B5jMTPJS.js → ui-image-YGEFo8L0.js} +1 -1
- package/stencil/{ui-image-d1314fef-Juydh_ii.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +6 -6
- package/stencil/ui-image-b7b48fe5-DCck2kk1.cjs +1 -0
- package/stencil/{ui-image-d1314fef-CQsVQg0l.js → ui-image-b7b48fe5-V9vp4faA.js} +6 -6
- package/stencil/{ui-image-DZfaeMnX.js → ui-image-w38Eao2h.js} +1 -1
- package/stencil/{ui-image_2-OR-2QD6I.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-BK3m47_O.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-DbIvpcwA.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CasinoCalendarDailyDetails-D8MUjPhD.js +0 -694
- package/components/CasinoCalendarDailyDetails-DciPEtlc.cjs +0 -1
- package/components/CasinoCalendarDailyDetails-DjHQLxKC.js +0 -694
- package/components/CasinoCalendarDailyItem-8n79Y5xW.cjs +0 -1
- package/components/CasinoCollectionsProviders-CwF-EeBd.cjs +0 -1
- package/components/CasinoGamesCategorySection-BQ1WL6iu.js +0 -3170
- package/components/CasinoGamesCategorySection-CbwlnTaF.js +0 -3139
- package/components/CasinoGamesCategorySection-qOt4yV-4.cjs +0 -1
- package/components/CasinoWinners-jQ69UTS2.cjs +0 -1
- package/stencil/ui-image-d1314fef-Dwwl-kWw.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as He, $ as We, S as Ue, i as Ve, s as Je, f as L, b as Ze, n as ue, d as j,
|
|
2
|
-
import { d as rt } from "./CasinoGameThumbnail-
|
|
3
|
-
import "./CasinoGamesCategorySection-
|
|
1
|
+
import { a as He, $ as We, S as Ue, i as Ve, s as Je, f as L, b as Ze, n as ue, d as j, M as Ye, r as f, Q as he, h as I, p as b, A as Y, j as C, B as z, F as de, P as ae, k as Ke, o as Xe, m as q, q as H, C as me, v as ge, w as Qe, T as Le, E as u, H as $e, I as et, J as tt, K as at, L as nt } from "./CasinoCalendar-gzR0syWU.js";
|
|
2
|
+
import { d as rt } from "./CasinoGameThumbnail-DiLl5Mrw.js";
|
|
3
|
+
import "./CasinoGamesCategorySection-BG3iYeKb.js";
|
|
4
4
|
function fe(t, e) {
|
|
5
5
|
He(t, e);
|
|
6
6
|
}
|
|
@@ -234,11 +234,11 @@ function _e(t) {
|
|
|
234
234
|
), n, r, l, s;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
e =
|
|
237
|
+
e = C("small"), n = H(a), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
|
238
238
|
(t[13] ? "NotVisible" : ""));
|
|
239
239
|
},
|
|
240
240
|
m(i, c) {
|
|
241
|
-
|
|
241
|
+
I(i, e, c), b(e, n), l || (s = Y(
|
|
242
242
|
e,
|
|
243
243
|
"click",
|
|
244
244
|
/*click_handler_1*/
|
|
@@ -278,21 +278,21 @@ function ct(t) {
|
|
|
278
278
|
), m = (
|
|
279
279
|
/*searchValue*/
|
|
280
280
|
t[12].length >= 2 && /*searchArray*/
|
|
281
|
-
t[15].length == 0 &&
|
|
281
|
+
t[15].length == 0 && Re(t)
|
|
282
282
|
);
|
|
283
283
|
return {
|
|
284
284
|
c() {
|
|
285
|
-
i && i.c(), e =
|
|
285
|
+
i && i.c(), e = z(), a = C("div"), c && c.c(), n = z(), m && m.c(), f(a, "class", r = "SearchResultsContainer " + /*searchActive*/
|
|
286
286
|
(t[17] == !0 ? "" : "NotVisible"));
|
|
287
287
|
},
|
|
288
288
|
m(h, g) {
|
|
289
|
-
i && i.m(h, g),
|
|
289
|
+
i && i.m(h, g), I(h, e, g), I(h, a, g), c && c.m(a, null), b(a, n), m && m.m(a, null);
|
|
290
290
|
},
|
|
291
291
|
p(h, g) {
|
|
292
292
|
s === (s = l(h)) && i ? i.p(h, g) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
293
293
|
h[13] === !1 ? c ? c.p(h, g) : (c = ke(h), c.c(), c.m(a, n)) : c && (c.d(1), c = null), /*searchValue*/
|
|
294
294
|
h[12].length >= 2 && /*searchArray*/
|
|
295
|
-
h[15].length == 0 ? m ? m.p(h, g) : (m =
|
|
295
|
+
h[15].length == 0 ? m ? m.p(h, g) : (m = Re(h), m.c(), m.m(a, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
|
|
296
296
|
131072 && r !== (r = "SearchResultsContainer " + /*searchActive*/
|
|
297
297
|
(h[17] == !0 ? "" : "NotVisible")) && f(a, "class", r);
|
|
298
298
|
},
|
|
@@ -308,10 +308,10 @@ function ut(t) {
|
|
|
308
308
|
), n;
|
|
309
309
|
return {
|
|
310
310
|
c() {
|
|
311
|
-
e =
|
|
311
|
+
e = C("p"), n = H(a), f(e, "class", "LoadingContent");
|
|
312
312
|
},
|
|
313
313
|
m(r, l) {
|
|
314
|
-
|
|
314
|
+
I(r, e, l), b(e, n);
|
|
315
315
|
},
|
|
316
316
|
p(r, l) {
|
|
317
317
|
l[0] & /*$_*/
|
|
@@ -330,10 +330,10 @@ function ht(t) {
|
|
|
330
330
|
), n;
|
|
331
331
|
return {
|
|
332
332
|
c() {
|
|
333
|
-
e =
|
|
333
|
+
e = C("p"), n = H(a), f(e, "class", "SearchMessage");
|
|
334
334
|
},
|
|
335
335
|
m(r, l) {
|
|
336
|
-
|
|
336
|
+
I(r, e, l), b(e, n);
|
|
337
337
|
},
|
|
338
338
|
p(r, l) {
|
|
339
339
|
l[0] & /*$_*/
|
|
@@ -355,10 +355,10 @@ function dt(t) {
|
|
|
355
355
|
);
|
|
356
356
|
return {
|
|
357
357
|
c() {
|
|
358
|
-
n && n.c(), e =
|
|
358
|
+
n && n.c(), e = z(), r && r.c(), a = Le();
|
|
359
359
|
},
|
|
360
360
|
m(l, s) {
|
|
361
|
-
n && n.m(l, s),
|
|
361
|
+
n && n.m(l, s), I(l, e, s), r && r.m(l, s), I(l, a, s);
|
|
362
362
|
},
|
|
363
363
|
p(l, s) {
|
|
364
364
|
/*searchArray*/
|
|
@@ -377,10 +377,10 @@ function we(t) {
|
|
|
377
377
|
), n;
|
|
378
378
|
return {
|
|
379
379
|
c() {
|
|
380
|
-
e =
|
|
380
|
+
e = C("p"), n = H(a), f(e, "class", "SearchMessage");
|
|
381
381
|
},
|
|
382
382
|
m(r, l) {
|
|
383
|
-
|
|
383
|
+
I(r, e, l), b(e, n);
|
|
384
384
|
},
|
|
385
385
|
p(r, l) {
|
|
386
386
|
l[0] & /*$_*/
|
|
@@ -402,11 +402,11 @@ function ve(t) {
|
|
|
402
402
|
);
|
|
403
403
|
return {
|
|
404
404
|
c() {
|
|
405
|
-
e =
|
|
405
|
+
e = C("div"), i && i.c(), a = z(), n = C("p"), l = H(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
406
406
|
(t[10] == "true" ? "WithIcon" : ""));
|
|
407
407
|
},
|
|
408
408
|
m(c, m) {
|
|
409
|
-
|
|
409
|
+
I(c, e, m), i && i.m(e, null), b(e, a), b(e, n), b(n, l);
|
|
410
410
|
},
|
|
411
411
|
p(c, m) {
|
|
412
412
|
/*notfoundicon*/
|
|
@@ -425,10 +425,10 @@ function ye(t) {
|
|
|
425
425
|
let e;
|
|
426
426
|
return {
|
|
427
427
|
c() {
|
|
428
|
-
e =
|
|
428
|
+
e = C("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");
|
|
429
429
|
},
|
|
430
430
|
m(a, n) {
|
|
431
|
-
|
|
431
|
+
I(a, e, n);
|
|
432
432
|
},
|
|
433
433
|
d(a) {
|
|
434
434
|
a && j(e);
|
|
@@ -441,7 +441,7 @@ function ke(t) {
|
|
|
441
441
|
t[15]
|
|
442
442
|
), n = [];
|
|
443
443
|
for (let r = 0; r < a.length; r += 1)
|
|
444
|
-
n[r] =
|
|
444
|
+
n[r] = Ce(be(t, a, r));
|
|
445
445
|
return {
|
|
446
446
|
c() {
|
|
447
447
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -451,7 +451,7 @@ function ke(t) {
|
|
|
451
451
|
m(r, l) {
|
|
452
452
|
for (let s = 0; s < n.length; s += 1)
|
|
453
453
|
n[s] && n[s].m(r, l);
|
|
454
|
-
|
|
454
|
+
I(r, e, l);
|
|
455
455
|
},
|
|
456
456
|
p(r, l) {
|
|
457
457
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
|
@@ -463,7 +463,7 @@ function ke(t) {
|
|
|
463
463
|
let s;
|
|
464
464
|
for (s = 0; s < a.length; s += 1) {
|
|
465
465
|
const i = be(r, a, s);
|
|
466
|
-
n[s] ? n[s].p(i, l) : (n[s] =
|
|
466
|
+
n[s] ? n[s].p(i, l) : (n[s] = Ce(i), n[s].c(), n[s].m(e.parentNode, e));
|
|
467
467
|
}
|
|
468
468
|
for (; s < n.length; s += 1)
|
|
469
469
|
n[s].d(1);
|
|
@@ -475,11 +475,11 @@ function ke(t) {
|
|
|
475
475
|
}
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Ce(t) {
|
|
479
479
|
let e, a, n, r, l, s, i, c, m, h, g, w;
|
|
480
480
|
return {
|
|
481
481
|
c() {
|
|
482
|
-
e =
|
|
482
|
+
e = C("casino-game-thumbnail"), u(
|
|
483
483
|
e,
|
|
484
484
|
"endpoint",
|
|
485
485
|
/*endpoint*/
|
|
@@ -560,7 +560,7 @@ function Re(t) {
|
|
|
560
560
|
);
|
|
561
561
|
},
|
|
562
562
|
m(d, p) {
|
|
563
|
-
|
|
563
|
+
I(d, e, p);
|
|
564
564
|
},
|
|
565
565
|
p(d, p) {
|
|
566
566
|
p[0] & /*endpoint*/
|
|
@@ -671,7 +671,7 @@ function Re(t) {
|
|
|
671
671
|
}
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function Re(t) {
|
|
675
675
|
let e, a, n, r = (
|
|
676
676
|
/*$_*/
|
|
677
677
|
t[21]("notFound") + ""
|
|
@@ -684,11 +684,11 @@ function Ce(t) {
|
|
|
684
684
|
);
|
|
685
685
|
return {
|
|
686
686
|
c() {
|
|
687
|
-
e =
|
|
687
|
+
e = C("div"), g && g.c(), a = z(), n = C("p"), l = H(r), s = z(), i = C("p"), m = H(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
688
688
|
(t[10] == "true" ? "WithIcon" : ""));
|
|
689
689
|
},
|
|
690
690
|
m(w, d) {
|
|
691
|
-
|
|
691
|
+
I(w, e, d), g && g.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
|
|
692
692
|
},
|
|
693
693
|
p(w, d) {
|
|
694
694
|
/*notfoundicon*/
|
|
@@ -709,10 +709,10 @@ function Fe(t) {
|
|
|
709
709
|
let e;
|
|
710
710
|
return {
|
|
711
711
|
c() {
|
|
712
|
-
e =
|
|
712
|
+
e = C("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");
|
|
713
713
|
},
|
|
714
714
|
m(a, n) {
|
|
715
|
-
|
|
715
|
+
I(a, e, n);
|
|
716
716
|
},
|
|
717
717
|
d(a) {
|
|
718
718
|
a && j(e);
|
|
@@ -720,35 +720,35 @@ function Fe(t) {
|
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
722
|
function mt(t) {
|
|
723
|
-
let e, a, n, r, l, s, i, c, m, h, g, w, d, p, B,
|
|
723
|
+
let e, a, n, r, l, s, i, c, m, h, g, w, d, p, B, N, x, V, A, W, v = (
|
|
724
724
|
/*cancelbutton*/
|
|
725
725
|
t[9] === "true" && _e(t)
|
|
726
726
|
);
|
|
727
|
-
function
|
|
727
|
+
function G(_, T) {
|
|
728
728
|
return (
|
|
729
729
|
/*isLoading*/
|
|
730
730
|
_[18] ? ut : ct
|
|
731
731
|
);
|
|
732
732
|
}
|
|
733
|
-
let M =
|
|
733
|
+
let M = G(t), k = M(t);
|
|
734
734
|
return {
|
|
735
735
|
c() {
|
|
736
|
-
e =
|
|
736
|
+
e = C("div"), a = C("div"), n = C("div"), r = C("div"), r.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>', l = z(), s = C("input"), c = z(), m = C("span"), h = de("svg"), g = de("path"), d = z(), v && v.c(), B = z(), N = C("div"), V = z(), k.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
737
737
|
t[21]("placeHolderSearchGames")), f(s, "maxlength", gt), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", w = "SearchClearButton " + /*cancelbutton*/
|
|
738
738
|
(t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
739
739
|
(t[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
|
|
740
|
-
(t[13] ? "" : "SearchAnimation")), f(a, "class", "SearchWrap"), f(
|
|
740
|
+
(t[13] ? "" : "SearchAnimation")), f(a, "class", "SearchWrap"), f(N, "class", x = /*cancelbutton*/
|
|
741
741
|
t[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (ae(
|
|
742
742
|
/*userAgent*/
|
|
743
743
|
t[22]
|
|
744
744
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
745
745
|
},
|
|
746
746
|
m(_, T) {
|
|
747
|
-
|
|
747
|
+
I(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
|
|
748
748
|
s,
|
|
749
749
|
/*searchValue*/
|
|
750
750
|
t[12]
|
|
751
|
-
), t[34](s), b(n, c), b(n, m), b(m, h), b(h, g), b(n, d), v && v.m(n, null), b(e, B), b(e,
|
|
751
|
+
), t[34](s), b(n, c), b(n, m), b(m, h), b(h, g), b(n, d), v && v.m(n, null), b(e, B), b(e, N), b(e, V), k.m(e, null), t[37](e), A || (W = [
|
|
752
752
|
Y(
|
|
753
753
|
s,
|
|
754
754
|
"input",
|
|
@@ -768,7 +768,7 @@ function mt(t) {
|
|
|
768
768
|
t[35]
|
|
769
769
|
),
|
|
770
770
|
Y(
|
|
771
|
-
|
|
771
|
+
N,
|
|
772
772
|
"click",
|
|
773
773
|
/*handleOverlay*/
|
|
774
774
|
t[24]
|
|
@@ -792,7 +792,7 @@ function mt(t) {
|
|
|
792
792
|
8192 && p !== (p = "Search " + /*searchCancelled*/
|
|
793
793
|
(_[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
|
|
794
794
|
512 && x !== (x = /*cancelbutton*/
|
|
795
|
-
_[9] != "true" ? "OverlayCancel" : "") && f(
|
|
795
|
+
_[9] != "true" ? "OverlayCancel" : "") && f(N, "class", x), M === (M = G(_)) && k ? k.p(_, T) : (k.d(1), k = M(_), k && (k.c(), k.m(e, null)));
|
|
796
796
|
},
|
|
797
797
|
i: ue,
|
|
798
798
|
o: ue,
|
|
@@ -805,7 +805,7 @@ let gt = 50;
|
|
|
805
805
|
function ft(t, e, a) {
|
|
806
806
|
let n;
|
|
807
807
|
Ke(t, nt, (o) => a(21, n = o));
|
|
808
|
-
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites:
|
|
808
|
+
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: w = "false" } = e, { showgamename: d = "" } = e, { gamepagemodalurl: p = "true" } = e, { translationurl: B = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: x = "true" } = e, { notfoundicon: V = "false" } = e, { mbsource: A } = e, W = window.navigator.userAgent, v = [], G = [], M = {}, k = "", _, T = !0, J = !1, D = !1, P, K = !1, X, Q, re = [];
|
|
809
809
|
const Te = () => {
|
|
810
810
|
fetch(B).then((S) => S.json()).then((S) => {
|
|
811
811
|
Object.keys(S).forEach((y) => {
|
|
@@ -819,23 +819,23 @@ function ft(t, e, a) {
|
|
|
819
819
|
fe(o, pe[o]);
|
|
820
820
|
});
|
|
821
821
|
const oe = (o) => {
|
|
822
|
-
o.data && o.data.type == "SearchedItemClicked" &&
|
|
822
|
+
o.data && o.data.type == "SearchedItemClicked" && Ne(o.data.gameId), o.data.type == "UserSessionID" && (a(19, X = o.data.session), a(20, Q = o.data.userid), a(32, K = !0)), o.data.type == "CategoryChange" && $();
|
|
823
823
|
}, se = () => {
|
|
824
824
|
if (a(13, T = !1), a(17, J = !0), r && l && c && k.length < 2) {
|
|
825
825
|
a(15, v = []);
|
|
826
826
|
let o = localStorage.getItem("searchedGamesWds_casino"), S = [];
|
|
827
827
|
o && (S = o.split(","));
|
|
828
|
-
let y = [],
|
|
828
|
+
let y = [], R = 0, F = S.length;
|
|
829
829
|
if (F > 0) {
|
|
830
|
-
for (
|
|
831
|
-
let
|
|
832
|
-
|
|
830
|
+
for (R = 0; R < F; R++) {
|
|
831
|
+
let E = new URL(`${r}/v1/casino/games/${S[R]}`);
|
|
832
|
+
E.searchParams.append("language", c), E.searchParams.append("datasource", l), E.searchParams.append("platform", ae(W)), y.push(Ee(E, S[R]));
|
|
833
833
|
}
|
|
834
|
-
Promise.all(y).then((
|
|
835
|
-
|
|
834
|
+
Promise.all(y).then((E) => {
|
|
835
|
+
E = E.filter(function(O) {
|
|
836
836
|
return !!O;
|
|
837
|
-
}), a(15, v =
|
|
838
|
-
}).catch((
|
|
837
|
+
}), a(15, v = E.map((O) => (O.isFavorite = le(O.id), O))), v.length ? Z("searchSuccess", "SearchWidget") : Z("searchFail", "SearchWidget");
|
|
838
|
+
}).catch((E) => {
|
|
839
839
|
Z("searchError", "SearchWidget");
|
|
840
840
|
});
|
|
841
841
|
}
|
|
@@ -845,19 +845,19 @@ function ft(t, e, a) {
|
|
|
845
845
|
typeof gtag == "function" && gtag("event", o, { context: S });
|
|
846
846
|
}, je = () => {
|
|
847
847
|
x != "true" && $();
|
|
848
|
-
},
|
|
849
|
-
a(18, D = !0), fetch(o.href).then((
|
|
850
|
-
a(18, D = !1), S(
|
|
851
|
-
}).catch((
|
|
852
|
-
a(18, D = !1), console.error(
|
|
848
|
+
}, Ie = (o) => new Promise((S, y) => {
|
|
849
|
+
a(18, D = !0), fetch(o.href).then((R) => R.json()).then((R) => {
|
|
850
|
+
a(18, D = !1), S(R);
|
|
851
|
+
}).catch((R) => {
|
|
852
|
+
a(18, D = !1), console.error(R), y(R);
|
|
853
853
|
});
|
|
854
|
-
}),
|
|
854
|
+
}), Ee = (o, S) => new Promise((y, R) => {
|
|
855
855
|
a(18, D = !0), S && Object.keys(M).indexOf(S) >= 0 ? (a(18, D = !1), y(M[S])) : fetch(o).then((F) => F.json()).then((F) => {
|
|
856
856
|
a(18, D = !1), F.error || (M[F[0].gameId] = F[0]), y(F[0]);
|
|
857
857
|
}).catch((F) => {
|
|
858
|
-
a(18, D = !1), console.error(F),
|
|
858
|
+
a(18, D = !1), console.error(F), R(F);
|
|
859
859
|
});
|
|
860
|
-
}),
|
|
860
|
+
}), Ge = () => {
|
|
861
861
|
const o = new URL(`${r}/v1/player/${Q}/favorites/`);
|
|
862
862
|
a(18, D = !0);
|
|
863
863
|
let S = {
|
|
@@ -865,23 +865,23 @@ function ft(t, e, a) {
|
|
|
865
865
|
headers: { "X-SessionID": X }
|
|
866
866
|
};
|
|
867
867
|
fetch(o.href, S).then((y) => y.json()).then((y) => {
|
|
868
|
-
a(18, D = !1), re = y.items.map((
|
|
868
|
+
a(18, D = !1), re = y.items.map((R) => R.id);
|
|
869
869
|
});
|
|
870
870
|
}, De = () => {
|
|
871
871
|
a(32, K = !0), a(19, X = s), a(20, Q = i);
|
|
872
|
-
}, le = (o) => re.findIndex((S) => S == o) !== -1,
|
|
872
|
+
}, le = (o) => re.findIndex((S) => S == o) !== -1, ze = (o) => {
|
|
873
873
|
if (o?.length === 0)
|
|
874
874
|
return "";
|
|
875
|
-
let S, y = 99999999999,
|
|
875
|
+
let S, y = 99999999999, R;
|
|
876
876
|
const F = new Date(Date.now());
|
|
877
|
-
return o.forEach((
|
|
878
|
-
const qe = new Date(
|
|
879
|
-
Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)),
|
|
877
|
+
return o.forEach((E, O) => {
|
|
878
|
+
const qe = new Date(E.schedules[0].startTime), te = new Date(E.schedules[0].endTime);
|
|
879
|
+
Se(new Date(te), new Date(F)) < y && (y = Se(new Date(te), new Date(F)), R = O), st(new Date(F), new Date(qe)) && lt(new Date(F), new Date(te)) && (S = o[R].name);
|
|
880
880
|
}), S;
|
|
881
|
-
},
|
|
882
|
-
if (
|
|
881
|
+
}, Ne = (o) => {
|
|
882
|
+
if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
|
|
883
883
|
let S;
|
|
884
|
-
|
|
884
|
+
G.unshift(o), S = G.join(","), localStorage.setItem("searchedGamesWds_casino", S);
|
|
885
885
|
}
|
|
886
886
|
}, $ = () => {
|
|
887
887
|
a(12, k = ""), a(13, T = !0), a(18, D = !1), a(15, v = []), a(17, J = !1), ce(J);
|
|
@@ -916,13 +916,13 @@ function ft(t, e, a) {
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
return t.$$set = (o) => {
|
|
919
|
-
"endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, B = o.translationurl), "showfavorites" in o && a(8,
|
|
919
|
+
"endpoint" in o && a(0, r = o.endpoint), "datasource" in o && a(28, l = o.datasource), "session" in o && a(29, s = o.session), "userid" in o && a(30, i = o.userid), "lang" in o && a(1, c = o.lang), "clientstyling" in o && a(2, m = o.clientstyling), "clientstylingurl" in o && a(3, h = o.clientstylingurl), "integratedgameframedesktop" in o && a(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && a(5, w = o.integratedgameframemobile), "showgamename" in o && a(6, d = o.showgamename), "gamepagemodalurl" in o && a(7, p = o.gamepagemodalurl), "translationurl" in o && a(31, B = o.translationurl), "showfavorites" in o && a(8, N = o.showfavorites), "cancelbutton" in o && a(9, x = o.cancelbutton), "notfoundicon" in o && a(10, V = o.notfoundicon), "mbsource" in o && a(11, A = o.mbsource);
|
|
920
920
|
}, t.$$.update = () => {
|
|
921
921
|
if (t.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
|
922
922
|
268447747)
|
|
923
923
|
if (k.length >= 2) {
|
|
924
924
|
const o = new URL(`${r}/v1/casino/games`);
|
|
925
|
-
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`),
|
|
925
|
+
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ae(W)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${k}`), Ie(o).then((S) => {
|
|
926
926
|
rt("game_search", { searchValue: k }), a(15, v = S.items.map((y) => (y.isFavorite = le(y.id), y)));
|
|
927
927
|
});
|
|
928
928
|
} else
|
|
@@ -932,7 +932,7 @@ function ft(t, e, a) {
|
|
|
932
932
|
1 && B && Te(), t.$$.dirty[0] & /*session, userid*/
|
|
933
933
|
1610612736 && s && i && De(), t.$$.dirty[0] & /*showfavorites*/
|
|
934
934
|
256 | t.$$.dirty[1] & /*isLoggedIn*/
|
|
935
|
-
2 &&
|
|
935
|
+
2 && N && K && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
936
936
|
16388 && m && P && $e(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
937
937
|
16392 && h && P && et(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
938
938
|
18432 && P && tt(P, `${A}.Style`);
|
|
@@ -945,7 +945,7 @@ function ft(t, e, a) {
|
|
|
945
945
|
w,
|
|
946
946
|
d,
|
|
947
947
|
p,
|
|
948
|
-
|
|
948
|
+
N,
|
|
949
949
|
x,
|
|
950
950
|
V,
|
|
951
951
|
A,
|
|
@@ -962,7 +962,7 @@ function ft(t, e, a) {
|
|
|
962
962
|
W,
|
|
963
963
|
se,
|
|
964
964
|
je,
|
|
965
|
-
|
|
965
|
+
ze,
|
|
966
966
|
$,
|
|
967
967
|
ie,
|
|
968
968
|
l,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-nljhPH7y.cjs"),Le=require("./CasinoGameThumbnail-CETsOO6r.cjs");require("./CasinoGamesCategorySection-qOt4yV-4.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-B7HDzCMK.cjs"),Le=require("./CasinoGameThumbnail-COIE0fub.cjs");require("./CasinoGamesCategorySection-D-NYfWaO.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;
|