@everymatrix/casino-search-nd 1.77.24 → 1.77.26
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/{CasinoGameThumbnailNd-Ji73E6on.js → CasinoGameThumbnailNd-B1RGlehU.js} +1148 -1167
- package/components/CasinoGameThumbnailNd-VQ9H5dn-.cjs +47 -0
- package/components/{CasinoGameThumbnailNd-BHS-lpKm.js → CasinoGameThumbnailNd-XmMPsOir.js} +1134 -1153
- package/components/{CasinoSearchNd-DHivqBun.js → CasinoSearchNd-CU9A9bUA.js} +50 -50
- package/components/{CasinoSearchNd-dFRlJKGt.js → CasinoSearchNd-CZK4MPSd.js} +48 -48
- package/components/{CasinoSearchNd-C3Lbktrz.cjs → CasinoSearchNd-Co5N1K2G.cjs} +1 -1
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/esnext/casino-search-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-BMiZteNE.cjs} +1 -1
- package/stencil/{ui-image-CHeV8e9p.js → ui-image-BW8AeEVd.js} +1 -1
- package/stencil/{ui-image-C7s6Uvn5.js → ui-image-CX3MBBZL.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/components/CasinoGameThumbnailNd-CkVsqvtj.cjs +0 -47
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as He, $ as qe, c as We, S as Oe, i as Ue, s as Ve, f as L, b as Je,
|
|
1
|
+
import { a as He, $ as qe, c as We, S as Oe, i as Ue, s as Ve, f as L, b as Je, e as y, d as D, g as le, h as f, j as ee, k as E, l as S, m as ie, n as U, o as ce, p as I, r as Ze, q as Ye, t as Ke, u as Xe, v as Qe, w as B, x as H, y as ue, z as $e, A as et, B as he, C as tt, D as de, E as Re, F as at, G as u, H as nt } from "./CasinoGameThumbnailNd-XmMPsOir.js";
|
|
2
2
|
function me(a, e) {
|
|
3
3
|
He(a, e);
|
|
4
4
|
}
|
|
@@ -204,7 +204,7 @@ if (typeof window < "u") {
|
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
|
207
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-XmMPsOir.js").then((e) => e.I).then(({ default: e }) => {
|
|
208
208
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
209
209
|
});
|
|
210
210
|
}
|
|
@@ -222,11 +222,11 @@ function pe(a) {
|
|
|
222
222
|
), n, r, l, s;
|
|
223
223
|
return {
|
|
224
224
|
c() {
|
|
225
|
-
e = y("small"), n =
|
|
225
|
+
e = y("small"), n = B(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
|
226
226
|
(a[16] ? "NotVisible" : ""));
|
|
227
227
|
},
|
|
228
228
|
m(i, c) {
|
|
229
|
-
|
|
229
|
+
E(i, e, c), S(e, n), l || (s = U(
|
|
230
230
|
e,
|
|
231
231
|
"click",
|
|
232
232
|
/*click_handler_1*/
|
|
@@ -236,12 +236,12 @@ function pe(a) {
|
|
|
236
236
|
p(i, c) {
|
|
237
237
|
c[0] & /*$_*/
|
|
238
238
|
2097152 && t !== (t = /*$_*/
|
|
239
|
-
i[21]("cancel") + "") &&
|
|
239
|
+
i[21]("cancel") + "") && H(n, t), c[0] & /*searchCancelled*/
|
|
240
240
|
65536 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
|
|
241
241
|
(i[16] ? "NotVisible" : "")) && f(e, "class", r);
|
|
242
242
|
},
|
|
243
243
|
d(i) {
|
|
244
|
-
i &&
|
|
244
|
+
i && I(e), l = !1, s();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
@@ -274,7 +274,7 @@ function lt(a) {
|
|
|
274
274
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
275
275
|
},
|
|
276
276
|
m(h, m) {
|
|
277
|
-
i && i.m(h, m),
|
|
277
|
+
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);
|
|
278
278
|
},
|
|
279
279
|
p(h, m) {
|
|
280
280
|
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*/
|
|
@@ -285,7 +285,7 @@ function lt(a) {
|
|
|
285
285
|
(h[17] == !0 ? "" : "NotVisible")) && f(t, "class", r);
|
|
286
286
|
},
|
|
287
287
|
d(h) {
|
|
288
|
-
h && (
|
|
288
|
+
h && (I(e), I(t)), i && i.d(h), c && c.d(), g && g.d();
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
@@ -296,18 +296,18 @@ function it(a) {
|
|
|
296
296
|
), n;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
299
|
-
e = y("p"), n =
|
|
299
|
+
e = y("p"), n = B(t), f(e, "class", "LoadingContent");
|
|
300
300
|
},
|
|
301
301
|
m(r, l) {
|
|
302
|
-
|
|
302
|
+
E(r, e, l), S(e, n);
|
|
303
303
|
},
|
|
304
304
|
p(r, l) {
|
|
305
305
|
l[0] & /*$_*/
|
|
306
306
|
2097152 && t !== (t = /*$_*/
|
|
307
|
-
r[21]("loading") + "") &&
|
|
307
|
+
r[21]("loading") + "") && H(n, t);
|
|
308
308
|
},
|
|
309
309
|
d(r) {
|
|
310
|
-
r &&
|
|
310
|
+
r && I(e);
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
@@ -318,18 +318,18 @@ function ct(a) {
|
|
|
318
318
|
), n;
|
|
319
319
|
return {
|
|
320
320
|
c() {
|
|
321
|
-
e = y("p"), n =
|
|
321
|
+
e = y("p"), n = B(t), f(e, "class", "SearchMessage");
|
|
322
322
|
},
|
|
323
323
|
m(r, l) {
|
|
324
|
-
|
|
324
|
+
E(r, e, l), S(e, n);
|
|
325
325
|
},
|
|
326
326
|
p(r, l) {
|
|
327
327
|
l[0] & /*$_*/
|
|
328
328
|
2097152 && t !== (t = /*$_*/
|
|
329
|
-
r[21]("searchResult") + "") &&
|
|
329
|
+
r[21]("searchResult") + "") && H(n, t);
|
|
330
330
|
},
|
|
331
331
|
d(r) {
|
|
332
|
-
r &&
|
|
332
|
+
r && I(e);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
@@ -346,7 +346,7 @@ function ut(a) {
|
|
|
346
346
|
n && n.c(), e = D(), r && r.c(), t = Re();
|
|
347
347
|
},
|
|
348
348
|
m(l, s) {
|
|
349
|
-
n && n.m(l, s),
|
|
349
|
+
n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, t, s);
|
|
350
350
|
},
|
|
351
351
|
p(l, s) {
|
|
352
352
|
/*searchArray*/
|
|
@@ -354,7 +354,7 @@ function ut(a) {
|
|
|
354
354
|
l[13].length == 0 ? r ? r.p(l, s) : (r = Se(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
|
355
355
|
},
|
|
356
356
|
d(l) {
|
|
357
|
-
l && (
|
|
357
|
+
l && (I(e), I(t)), n && n.d(l), r && r.d(l);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
}
|
|
@@ -365,18 +365,18 @@ function _e(a) {
|
|
|
365
365
|
), n;
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
|
-
e = y("p"), n =
|
|
368
|
+
e = y("p"), n = B(t), f(e, "class", "SearchMessage");
|
|
369
369
|
},
|
|
370
370
|
m(r, l) {
|
|
371
|
-
|
|
371
|
+
E(r, e, l), S(e, n);
|
|
372
372
|
},
|
|
373
373
|
p(r, l) {
|
|
374
374
|
l[0] & /*$_*/
|
|
375
375
|
2097152 && t !== (t = /*$_*/
|
|
376
|
-
r[21]("recentSearch") + "") &&
|
|
376
|
+
r[21]("recentSearch") + "") && H(n, t);
|
|
377
377
|
},
|
|
378
378
|
d(r) {
|
|
379
|
-
r &&
|
|
379
|
+
r && I(e);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
}
|
|
@@ -390,22 +390,22 @@ function Se(a) {
|
|
|
390
390
|
);
|
|
391
391
|
return {
|
|
392
392
|
c() {
|
|
393
|
-
e = y("div"), i && i.c(), t = D(), n = y("p"), l =
|
|
393
|
+
e = y("div"), i && i.c(), t = D(), n = y("p"), l = B(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
394
394
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
395
395
|
},
|
|
396
396
|
m(c, g) {
|
|
397
|
-
|
|
397
|
+
E(c, e, g), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
|
|
398
398
|
},
|
|
399
399
|
p(c, g) {
|
|
400
400
|
/*notfoundicon*/
|
|
401
401
|
c[11] === "true" ? i || (i = we(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
|
|
402
402
|
2097152 && r !== (r = /*$_*/
|
|
403
|
-
c[21]("noRecentSearches") + "") &&
|
|
403
|
+
c[21]("noRecentSearches") + "") && H(l, r), g[0] & /*notfoundicon*/
|
|
404
404
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
405
405
|
(c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
|
406
406
|
},
|
|
407
407
|
d(c) {
|
|
408
|
-
c &&
|
|
408
|
+
c && I(e), i && i.d();
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
@@ -416,10 +416,10 @@ function we(a) {
|
|
|
416
416
|
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");
|
|
417
417
|
},
|
|
418
418
|
m(t, n) {
|
|
419
|
-
|
|
419
|
+
E(t, e, n);
|
|
420
420
|
},
|
|
421
421
|
d(t) {
|
|
422
|
-
t &&
|
|
422
|
+
t && I(e);
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
}
|
|
@@ -439,7 +439,7 @@ function be(a) {
|
|
|
439
439
|
m(r, l) {
|
|
440
440
|
for (let s = 0; s < n.length; s += 1)
|
|
441
441
|
n[s] && n[s].m(r, l);
|
|
442
|
-
|
|
442
|
+
E(r, e, l);
|
|
443
443
|
},
|
|
444
444
|
p(r, l) {
|
|
445
445
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
@@ -459,7 +459,7 @@ function be(a) {
|
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
d(r) {
|
|
462
|
-
r &&
|
|
462
|
+
r && I(e), at(n, r);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
}
|
|
@@ -548,7 +548,7 @@ function ve(a) {
|
|
|
548
548
|
);
|
|
549
549
|
},
|
|
550
550
|
m(d, p) {
|
|
551
|
-
|
|
551
|
+
E(d, e, p);
|
|
552
552
|
},
|
|
553
553
|
p(d, p) {
|
|
554
554
|
p[0] & /*endpoint*/
|
|
@@ -655,7 +655,7 @@ function ve(a) {
|
|
|
655
655
|
);
|
|
656
656
|
},
|
|
657
657
|
d(d) {
|
|
658
|
-
d &&
|
|
658
|
+
d && I(e);
|
|
659
659
|
}
|
|
660
660
|
};
|
|
661
661
|
}
|
|
@@ -672,24 +672,24 @@ function ke(a) {
|
|
|
672
672
|
);
|
|
673
673
|
return {
|
|
674
674
|
c() {
|
|
675
|
-
e = y("div"), m && m.c(), t = D(), n = y("p"), l =
|
|
675
|
+
e = y("div"), m && m.c(), t = D(), n = y("p"), l = B(r), s = D(), i = y("p"), g = B(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
676
676
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
677
677
|
},
|
|
678
678
|
m(b, d) {
|
|
679
|
-
|
|
679
|
+
E(b, 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);
|
|
680
680
|
},
|
|
681
681
|
p(b, d) {
|
|
682
682
|
/*notfoundicon*/
|
|
683
683
|
b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
|
|
684
684
|
2097152 && r !== (r = /*$_*/
|
|
685
|
-
b[21]("notFound") + "") &&
|
|
685
|
+
b[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
|
|
686
686
|
2097152 && c !== (c = /*$_*/
|
|
687
|
-
b[21]("notFoundText") + "") &&
|
|
687
|
+
b[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
|
|
688
688
|
2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
689
689
|
(b[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
|
|
690
690
|
},
|
|
691
691
|
d(b) {
|
|
692
|
-
b &&
|
|
692
|
+
b && I(e), m && m.d();
|
|
693
693
|
}
|
|
694
694
|
};
|
|
695
695
|
}
|
|
@@ -700,10 +700,10 @@ function ye(a) {
|
|
|
700
700
|
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");
|
|
701
701
|
},
|
|
702
702
|
m(t, n) {
|
|
703
|
-
|
|
703
|
+
E(t, e, n);
|
|
704
704
|
},
|
|
705
705
|
d(t) {
|
|
706
|
-
t &&
|
|
706
|
+
t && I(e);
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
709
|
}
|
|
@@ -721,7 +721,7 @@ function ht(a) {
|
|
|
721
721
|
let x = G(a), R = x(a);
|
|
722
722
|
return {
|
|
723
723
|
c() {
|
|
724
|
-
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 = D(), s = y("input"), c = D(), g = y("span"), h =
|
|
724
|
+
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 = D(), s = y("input"), c = D(), g = y("span"), h = le("svg"), m = le("path"), d = D(), v && v.c(), V = D(), N = y("div"), q = D(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
725
725
|
a[21]("placeHolderSearchGames")), f(s, "maxlength", dt), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "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(g, "class", b = "SearchClearButton " + /*cancelbutton*/
|
|
726
726
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
727
727
|
(a[14].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
|
|
@@ -732,7 +732,7 @@ function ht(a) {
|
|
|
732
732
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
733
733
|
},
|
|
734
734
|
m(w, T) {
|
|
735
|
-
|
|
735
|
+
E(w, e, T), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
|
|
736
736
|
s,
|
|
737
737
|
/*searchValue*/
|
|
738
738
|
a[14]
|
|
@@ -788,17 +788,17 @@ function ht(a) {
|
|
|
788
788
|
1024 && M !== (M = /*cancelbutton*/
|
|
789
789
|
w[10] != "true" ? "OverlayCancel" : "") && f(N, "class", M), x === (x = G(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
|
|
790
790
|
},
|
|
791
|
-
i:
|
|
792
|
-
o:
|
|
791
|
+
i: ce,
|
|
792
|
+
o: ce,
|
|
793
793
|
d(w) {
|
|
794
|
-
w &&
|
|
794
|
+
w && I(e), a[35](null), v && v.d(), R.d(), a[38](null), W = !1, Ze(O);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
798
|
let dt = 50;
|
|
799
799
|
function mt(a, e, t) {
|
|
800
800
|
let n;
|
|
801
|
-
Ye(a,
|
|
801
|
+
Ye(a, nt, (o) => t(21, n = o));
|
|
802
802
|
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: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: V = "true" } = e, { translationurl: N = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], G = [], x = {}, R = "", w, T = !0, J = !1, z = !1, P, Y = !1, K, X, te = [];
|
|
803
803
|
const Ce = () => {
|
|
804
804
|
fetch(N).then((_) => _.json()).then((_) => {
|
|
@@ -870,7 +870,7 @@ function mt(a, e, t) {
|
|
|
870
870
|
const F = new Date(Date.now());
|
|
871
871
|
return o.forEach((j, A) => {
|
|
872
872
|
const Be = new Date(j.schedules[0].startTime), $ = new Date(j.schedules[0].endTime);
|
|
873
|
-
ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = A),
|
|
873
|
+
ue(new Date($), new Date(F)) < k && (k = ue(new Date($), new Date(F)), C = A), $e(new Date(F), new Date(Be)) && et(new Date(F), new Date($)) && (_ = o[C].name);
|
|
874
874
|
}), _;
|
|
875
875
|
}, Ge = (o) => {
|
|
876
876
|
if (G = localStorage.getItem("searchedGamesWds_casino"), G ? G = G.split(",") : G = [], G.indexOf(o) === -1) {
|
|
@@ -928,8 +928,8 @@ function mt(a, e, t) {
|
|
|
928
928
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
929
929
|
4 && M && Y && Ee(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
930
930
|
4104 && h && P && tt(P, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
931
|
-
4112 && m && P &&
|
|
932
|
-
4100 && g && P &&
|
|
931
|
+
4112 && m && P && Xe(P, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
932
|
+
4100 && g && P && Qe(P, `${g}.Style`);
|
|
933
933
|
}, [
|
|
934
934
|
r,
|
|
935
935
|
c,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var K=(n,t,a)=>new Promise((r,s)=>{var i=u=>{try{c(a.next(u))}catch(m){s(m)}},l=u=>{try{c(a.throw(u))}catch(m){s(m)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-CkVsqvtj.cjs");function X(n,t){e.addMessages(n,t)}function Ce(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."}},Fe=(n,t)=>function(...a){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{n.apply(this,a)},t)};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-CkVsqvtj.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Le(n){e.append_styles(n,"svelte-1vt65d9","*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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: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 .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[55]=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[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[37]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&65536&&s!==(s="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Te(n){let t,a,r,s;function i(d,f){if(d[17]==!0&&d[14].length<2)return je;if(d[13].length!=0)return Ee}let l=i(n),c=l&&l(n),u=n[16]===!1&&re(n),m=n[14].length>=2&&n[13].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,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[16]===!1?u?u.p(d,f):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?m?m.p(d,f):(m=oe(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[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(),m&&m.d()}}}function Ie(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 Ee(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[13].length!==0&&te(n),s=n[13].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[13].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].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,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),m[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[13]),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]&35136511){a=e.ensure_array_like(s[13]);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,m,d,f,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[55].thumbnail),e.set_custom_element_data(t,"gamename",r=n[55].name),e.set_custom_element_data(t,"gamevendor",s=n[55].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[55].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[55].advancedTags)==null?void 0:h.length)>0&&n[25](n[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[55].cellSize),e.set_custom_element_data(t,"gameid",m=n[55].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[55].details?n[55].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,g){e.insert(h,t,g)},p(h,g){var E;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&8192&&a!==(a=h[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&8192&&r!==(r=h[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&s!==(s=h[55].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&8192&&i!==(i=h[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=h[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((E=h[55].advancedTags)==null?void 0:E.length)>0&&h[25](h[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=h[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&m!==(m=h[55].id)&&e.set_custom_element_data(t,"gameid",m),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&8192&&d!==(d=h[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=h[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=h[55].details?h[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[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")+"",m,d,f=n[11]==="true"&&le();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),m=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),f&&f.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,m)},p(S,h){S[11]==="true"?f||(f=le(),f.c(),f.m(t,a)):f&&(f.d(1),f=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(m,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.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,m,d,f,S,h,g,E,T,j,N,D,P,b=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Ie:Te}let G=F(n),v=G(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(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),b&&b.c(),E=e.space(),T=e.element("div"),N=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",ze),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(m,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[16]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",j=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[14]),n[35](l),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),b&&b.m(r,null),e.append(t,E),e.append(t,T),e.append(t,N),v.m(t,null),n[38](t),D||(P=[e.listen(l,"input",n[34]),e.listen(l,"focus",n[23]),e.listen(l,"input",n[28]),e.listen(m,"click",n[36]),e.listen(T,"click",n[24])],D=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&17408&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(m,"class",S),_[10]==="true"?b?b.p(_,R):(b=ee(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&j!==(j=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",j),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[35](null),b&&b.d(),v.d(),n[38](null),D=!1,e.run_all(P)}}}let ze=50;function Ne(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:m}=t,{clientstyling:d=""}=t,{clientstylingurl:f=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:E="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:D="false"}=t,P=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,B,H,O=[];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 U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,H=o.data.userid),a(33,A=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(16,R=!1),a(17,M=!0),s&&i&&u&&v.length<2){a(13,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${s}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),w.push(he(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(z){return!!z}),a(13,b=C.map(z=>(z.isFavorite=J(z.id),z))),b.length?x("searchSuccess","SearchWidget"):x("searchFail","SearchWidget")}).catch(C=>{x("searchError","SearchWidget")})}}Y(M),x("searchAttempt","SearchWidget"),x("SearchInitialized","SearchWidget")},x=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{N!="true"&&q()},de=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(a(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${H}/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),O=w.items.map(y=>y.id)})},fe=()=>{a(33,A=!0),a(19,B=l),a(20,H=c)},J=o=>O.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((C,z)=>{const Re=new Date(C.schedules[0].startTime),W=new Date(C.schedules[0].endTime);e.differenceInMilliseconds(new Date(W),new Date(k))<w&&(w=e.differenceInMilliseconds(new Date(W),new Date(k)),y=z),e.isAfter(new Date(k),new Date(Re))&&e.isBefore(new Date(k),new Date(W))&&(p=o[y].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)}},q=()=>{a(14,v=""),a(16,R=!0),a(18,L=!1),a(13,b=[]),a(17,M=!1),Y(M)},Z=()=>{a(14,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Ce(u)},Se=Fe(()=>K(this,null,function*(){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(13,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else R||V()}),500);e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function be(){v=this.value,a(14,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(15,_)})}const ve=()=>Z(),ye=()=>q();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(12,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(29,i=o.datasource),"session"in o&&a(30,l=o.session),"userid"in o&&a(31,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,m=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,f=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,E=o.gamepagemodalurl),"translationurl"in o&&a(32,T=o.translationurl),"showfavorites"in o&&a(9,j=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,D=o.notfoundicon)},n.$$.update=()=>{n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&2&&T&&ce(),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&1&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&4&&j&&A&&me(),n.$$.dirty[0]&4104&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&4112&&f&&I&&e.setClientStylingURL(I,f),n.$$.dirty[0]&4100&&m&&I&&e.setStreamStyling(I,`${m}.Style`)},[s,u,m,d,f,S,h,g,E,j,N,D,I,b,v,_,R,M,L,B,H,r,P,V,ue,ge,q,Z,Se,i,l,c,T,A,be,we,ve,ye,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ne,Ge,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:32,showfavorites:9,cancelbutton:10,notfoundicon:11},Le,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}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[32]}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";var K=(n,t,a)=>new Promise((r,s)=>{var i=u=>{try{c(a.next(u))}catch(m){s(m)}},l=u=>{try{c(a.throw(u))}catch(m){s(m)}},c=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,l);c((a=a.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-VQ9H5dn-.cjs");function X(n,t){e.addMessages(n,t)}function Ce(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."}},Fe=(n,t)=>function(...a){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{n.apply(this,a)},t)};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-VQ9H5dn-.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Le(n){e.append_styles(n,"svelte-1vt65d9","*,*::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 10px;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;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.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: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 .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[55]=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[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[37]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&65536&&s!==(s="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Te(n){let t,a,r,s;function i(d,f){if(d[17]==!0&&d[14].length<2)return je;if(d[13].length!=0)return Ee}let l=i(n),c=l&&l(n),u=n[16]===!1&&re(n),m=n[14].length>=2&&n[13].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,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[16]===!1?u?u.p(d,f):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[14].length>=2&&d[13].length==0?m?m.p(d,f):(m=oe(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[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(),m&&m.d()}}}function Ie(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 Ee(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[13].length!==0&&te(n),s=n[13].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[13].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[13].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,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),m[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[13]),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]&35136511){a=e.ensure_array_like(s[13]);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,m,d,f,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[55].thumbnail),e.set_custom_element_data(t,"gamename",r=n[55].name),e.set_custom_element_data(t,"gamevendor",s=n[55].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[55].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[55].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[55].advancedTags)==null?void 0:h.length)>0&&n[25](n[55].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[55].cellSize),e.set_custom_element_data(t,"gameid",m=n[55].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[55].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[55].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[55].details?n[55].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,g){e.insert(h,t,g)},p(h,g){var E;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&8192&&a!==(a=h[55].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&8192&&r!==(r=h[55].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&8192&&s!==(s=h[55].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&8192&&i!==(i=h[55].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&8192&&l!==(l=h[55].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&8192&&c!==(c=((E=h[55].advancedTags)==null?void 0:E.length)>0&&h[25](h[55].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&8192&&u!==(u=h[55].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&8192&&m!==(m=h[55].id)&&e.set_custom_element_data(t,"gameid",m),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&8192&&d!==(d=h[55].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&8192&&f!==(f=h[55].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&8192&&S!==(S=h[55].details?h[55].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[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")+"",m,d,f=n[11]==="true"&&le();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),m=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),f&&f.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,m)},p(S,h){S[11]==="true"?f||(f=le(),f.c(),f.m(t,a)):f&&(f.d(1),f=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(m,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),f&&f.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,m,d,f,S,h,g,E,T,j,N,D,P,b=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Ie:Te}let G=F(n),v=G(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(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),b&&b.c(),E=e.space(),T=e.element("div"),N=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",ze),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(m,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[14].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[16]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",j=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[14]),n[35](l),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),b&&b.m(r,null),e.append(t,E),e.append(t,T),e.append(t,N),v.m(t,null),n[38](t),D||(P=[e.listen(l,"input",n[34]),e.listen(l,"focus",n[23]),e.listen(l,"input",n[28]),e.listen(m,"click",n[36]),e.listen(T,"click",n[24])],D=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),R[0]&17408&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(m,"class",S),_[10]==="true"?b?b.p(_,R):(b=ee(_),b.c(),b.m(r,null)):b&&(b.d(1),b=null),R[0]&65536&&g!==(g="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&j!==(j=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",j),G===(G=F(_))&&v?v.p(_,R):(v.d(1),v=G(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[35](null),b&&b.d(),v.d(),n[38](null),D=!1,e.run_all(P)}}}let ze=50;function Ne(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:m}=t,{clientstyling:d=""}=t,{clientstylingurl:f=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:E="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:D="false"}=t,P=window.navigator.userAgent,b=[],F=[],G={},v="",_,R=!0,M=!1,L=!1,I,A=!1,B,H,O=[];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 U=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,B=o.data.session),a(20,H=o.data.userid),a(33,A=!0)),o.data.type=="CategoryChange"&&q()},V=()=>{if(a(16,R=!1),a(17,M=!0),s&&i&&u&&v.length<2){a(13,b=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let w=[],y=0,k=p.length;if(k>0){for(y=0;y<k;y++){let C=new URL(`${s}/v1/casino/games/${p[y]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(P)),w.push(he(C,p[y]))}Promise.all(w).then(C=>{C=C.filter(function(z){return!!z}),a(13,b=C.map(z=>(z.isFavorite=J(z.id),z))),b.length?x("searchSuccess","SearchWidget"):x("searchFail","SearchWidget")}).catch(C=>{x("searchError","SearchWidget")})}}Y(M),x("searchAttempt","SearchWidget"),x("SearchInitialized","SearchWidget")},x=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{N!="true"&&q()},de=o=>new Promise((p,w)=>{a(18,L=!0),fetch(o.href).then(y=>y.json()).then(y=>{a(18,L=!1),p(y)}).catch(y=>{a(18,L=!1),console.error(y),w(y)})}),he=(o,p)=>new Promise((w,y)=>{a(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(a(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{a(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{a(18,L=!1),console.error(k),y(k)})}),me=()=>{const o=new URL(`${s}/v1/player/${H}/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),O=w.items.map(y=>y.id)})},fe=()=>{a(33,A=!0),a(19,B=l),a(20,H=c)},J=o=>O.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.forEach((C,z)=>{const Re=new Date(C.schedules[0].startTime),W=new Date(C.schedules[0].endTime);e.differenceInMilliseconds(new Date(W),new Date(k))<w&&(w=e.differenceInMilliseconds(new Date(W),new Date(k)),y=z),e.isAfter(new Date(k),new Date(Re))&&e.isBefore(new Date(k),new Date(W))&&(p=o[y].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)}},q=()=>{a(14,v=""),a(16,R=!0),a(18,L=!1),a(13,b=[]),a(17,M=!1),Y(M)},Z=()=>{a(14,v=""),_.focus()},Y=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Ce(u)},Se=Fe(()=>K(this,null,function*(){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(13,b=p.items.map(w=>(w.isFavorite=J(w.id),w)))})}else R||V()}),500);e.onMount(()=>(window.addEventListener("message",U,!1),()=>{window.removeEventListener("message",U)}));function be(){v=this.value,a(14,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(15,_)})}const ve=()=>Z(),ye=()=>q();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(12,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(29,i=o.datasource),"session"in o&&a(30,l=o.session),"userid"in o&&a(31,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,m=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,f=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,E=o.gamepagemodalurl),"translationurl"in o&&a(32,T=o.translationurl),"showfavorites"in o&&a(9,j=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,D=o.notfoundicon)},n.$$.update=()=>{n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&2&&T&&ce(),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&1&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&4&&j&&A&&me(),n.$$.dirty[0]&4104&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&4112&&f&&I&&e.setClientStylingURL(I,f),n.$$.dirty[0]&4100&&m&&I&&e.setStreamStyling(I,`${m}.Style`)},[s,u,m,d,f,S,h,g,E,j,N,D,I,b,v,_,R,M,L,B,H,r,P,V,ue,ge,q,Z,Se,i,l,c,T,A,be,we,ve,ye,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ne,Ge,e.safe_not_equal,{endpoint:0,datasource:29,session:30,userid:31,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:32,showfavorites:9,cancelbutton:10,notfoundicon:11},Le,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[29]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[30]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[31]}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[32]}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 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-Co5N1K2G.cjs")).then(({default:t})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-CU9A9bUA.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-search-nd") && customElements.define("casino-search-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|