@everymatrix/casino-search 1.76.14 → 1.77.1
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/CasinoGameThumbnail-BLohslyt.cjs +64 -0
- package/components/{CasinoGameThumbnail-CBxuOOLU.js → CasinoGameThumbnail-CdLZUH_x.js} +1835 -1814
- package/components/{CasinoGameThumbnail-CAWQB6Qm.js → CasinoGameThumbnail-Dgb04_vQ.js} +1767 -1746
- package/components/{CasinoSearch-BEJBVsb6.js → CasinoSearch-CBgOodqt.js} +48 -48
- package/components/{CasinoSearch-BT8i9Sq-.cjs → CasinoSearch-CpCOm5xB.cjs} +1 -1
- package/components/{CasinoSearch-DeBV3-Ju.js → CasinoSearch-DVv9hdIk.js} +50 -50
- package/es2015/casino-search.cjs +1 -1
- package/es2015/casino-search.js +1 -1
- package/esnext/casino-search.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-BqeIndhr.js +554 -0
- package/stencil/index-242ac81a-CI4JxPRf.js +538 -0
- package/stencil/index-242ac81a-CjjM4VND.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BU5r6gJa.cjs → ui-image-2ff23cd5-BHGIWJop.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DZZYCsK1.js → ui-image-2ff23cd5-D0rXudCW.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-CBX1vdMZ.js → ui-image-2ff23cd5-DCLQ0SIO.js} +1 -1
- package/stencil/{ui-image-CVwHW7a_.js → ui-image-C0Jfm_O4.js} +1 -1
- package/stencil/{ui-image-BhXCYysO.js → ui-image-DmRWEjrp.js} +1 -1
- package/stencil/{ui-image-DrDalrqH.cjs → ui-image-EfKW3THf.cjs} +1 -1
- package/stencil/{ui-image_2-ID_1Oi3k.js → ui-image_2-B21W_djK.js} +2 -2
- package/stencil/{ui-image_2-Bsl4RJfi.cjs → ui-image_2-CLk629jW.cjs} +1 -1
- package/stencil/{ui-image_2-exO7RXKL.js → ui-image_2-VgK3B8gQ.js} +2 -2
- package/components/CasinoGameThumbnail-Dyto4ugG.cjs +0 -64
- package/stencil/index-242ac81a-Bl2OSy8h.js +0 -538
- package/stencil/index-242ac81a-Czg480dJ.js +0 -554
- package/stencil/index-242ac81a-DDPF_SYN.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as He, $ as We, c as Ue, S as Ve, i as Je, s as Ze, f as L, b as Ye,
|
|
1
|
+
import { a as He, $ as We, c as Ue, S as Ve, i as Je, s as Ze, f as L, b as Ye, n as ue, d as j, r as Xe, e as g, g as he, h as E, j as b, l as Y, k as C, m as z, o as de, p as ae, q as Ke, t as Qe, u as $e, v as q, w as H, x as me, y as fe, z as et, A as Le, B as u, C as tt, D as at, E as nt, F as rt } from "./CasinoGameThumbnail-CdLZUH_x.js";
|
|
2
2
|
function ge(t, e) {
|
|
3
3
|
He(t, e);
|
|
4
4
|
}
|
|
@@ -200,7 +200,7 @@ if (typeof window < "u") {
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
customElements.define = t(customElements.define), import("./CasinoGameThumbnail-
|
|
203
|
+
customElements.define = t(customElements.define), import("./CasinoGameThumbnail-CdLZUH_x.js").then((e) => e.G).then(({ default: e }) => {
|
|
204
204
|
!customElements.get("casino-game-thumbnail") && customElements.define("casino-game-thumbnail", e.element);
|
|
205
205
|
});
|
|
206
206
|
}
|
|
@@ -248,11 +248,11 @@ function _e(t) {
|
|
|
248
248
|
), n, r, l, s;
|
|
249
249
|
return {
|
|
250
250
|
c() {
|
|
251
|
-
e = C("small"), n =
|
|
251
|
+
e = C("small"), n = H(a), g(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
|
252
252
|
(t[13] ? "NotVisible" : ""));
|
|
253
253
|
},
|
|
254
254
|
m(i, c) {
|
|
255
|
-
|
|
255
|
+
E(i, e, c), b(e, n), l || (s = Y(
|
|
256
256
|
e,
|
|
257
257
|
"click",
|
|
258
258
|
/*click_handler_1*/
|
|
@@ -262,12 +262,12 @@ function _e(t) {
|
|
|
262
262
|
p(i, c) {
|
|
263
263
|
c[0] & /*$_*/
|
|
264
264
|
2097152 && a !== (a = /*$_*/
|
|
265
|
-
i[21]("cancel") + "") &&
|
|
265
|
+
i[21]("cancel") + "") && q(n, a), c[0] & /*searchCancelled*/
|
|
266
266
|
8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
|
|
267
267
|
(i[13] ? "NotVisible" : "")) && g(e, "class", r);
|
|
268
268
|
},
|
|
269
269
|
d(i) {
|
|
270
|
-
i &&
|
|
270
|
+
i && j(e), l = !1, s();
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
}
|
|
@@ -300,7 +300,7 @@ function ct(t) {
|
|
|
300
300
|
(t[17] == !0 ? "" : "NotVisible"));
|
|
301
301
|
},
|
|
302
302
|
m(h, f) {
|
|
303
|
-
i && i.m(h, f),
|
|
303
|
+
i && i.m(h, f), E(h, e, f), E(h, a, f), c && c.m(a, null), b(a, n), m && m.m(a, null);
|
|
304
304
|
},
|
|
305
305
|
p(h, f) {
|
|
306
306
|
s === (s = l(h)) && i ? i.p(h, f) : (i && i.d(1), i = s && s(h), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
@@ -311,7 +311,7 @@ function ct(t) {
|
|
|
311
311
|
(h[17] == !0 ? "" : "NotVisible")) && g(a, "class", r);
|
|
312
312
|
},
|
|
313
313
|
d(h) {
|
|
314
|
-
h && (
|
|
314
|
+
h && (j(e), j(a)), i && i.d(h), c && c.d(), m && m.d();
|
|
315
315
|
}
|
|
316
316
|
};
|
|
317
317
|
}
|
|
@@ -322,18 +322,18 @@ function ut(t) {
|
|
|
322
322
|
), n;
|
|
323
323
|
return {
|
|
324
324
|
c() {
|
|
325
|
-
e = C("p"), n =
|
|
325
|
+
e = C("p"), n = H(a), g(e, "class", "LoadingContent");
|
|
326
326
|
},
|
|
327
327
|
m(r, l) {
|
|
328
|
-
|
|
328
|
+
E(r, e, l), b(e, n);
|
|
329
329
|
},
|
|
330
330
|
p(r, l) {
|
|
331
331
|
l[0] & /*$_*/
|
|
332
332
|
2097152 && a !== (a = /*$_*/
|
|
333
|
-
r[21]("loading") + "") &&
|
|
333
|
+
r[21]("loading") + "") && q(n, a);
|
|
334
334
|
},
|
|
335
335
|
d(r) {
|
|
336
|
-
r &&
|
|
336
|
+
r && j(e);
|
|
337
337
|
}
|
|
338
338
|
};
|
|
339
339
|
}
|
|
@@ -344,18 +344,18 @@ function ht(t) {
|
|
|
344
344
|
), n;
|
|
345
345
|
return {
|
|
346
346
|
c() {
|
|
347
|
-
e = C("p"), n =
|
|
347
|
+
e = C("p"), n = H(a), g(e, "class", "SearchMessage");
|
|
348
348
|
},
|
|
349
349
|
m(r, l) {
|
|
350
|
-
|
|
350
|
+
E(r, e, l), b(e, n);
|
|
351
351
|
},
|
|
352
352
|
p(r, l) {
|
|
353
353
|
l[0] & /*$_*/
|
|
354
354
|
2097152 && a !== (a = /*$_*/
|
|
355
|
-
r[21]("searchResult") + "") &&
|
|
355
|
+
r[21]("searchResult") + "") && q(n, a);
|
|
356
356
|
},
|
|
357
357
|
d(r) {
|
|
358
|
-
r &&
|
|
358
|
+
r && j(e);
|
|
359
359
|
}
|
|
360
360
|
};
|
|
361
361
|
}
|
|
@@ -372,7 +372,7 @@ function dt(t) {
|
|
|
372
372
|
n && n.c(), e = z(), r && r.c(), a = Le();
|
|
373
373
|
},
|
|
374
374
|
m(l, s) {
|
|
375
|
-
n && n.m(l, s),
|
|
375
|
+
n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, a, s);
|
|
376
376
|
},
|
|
377
377
|
p(l, s) {
|
|
378
378
|
/*searchArray*/
|
|
@@ -380,7 +380,7 @@ function dt(t) {
|
|
|
380
380
|
l[15].length == 0 ? r ? r.p(l, s) : (r = ve(l), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
|
|
381
381
|
},
|
|
382
382
|
d(l) {
|
|
383
|
-
l && (
|
|
383
|
+
l && (j(e), j(a)), n && n.d(l), r && r.d(l);
|
|
384
384
|
}
|
|
385
385
|
};
|
|
386
386
|
}
|
|
@@ -391,18 +391,18 @@ function we(t) {
|
|
|
391
391
|
), n;
|
|
392
392
|
return {
|
|
393
393
|
c() {
|
|
394
|
-
e = C("p"), n =
|
|
394
|
+
e = C("p"), n = H(a), g(e, "class", "SearchMessage");
|
|
395
395
|
},
|
|
396
396
|
m(r, l) {
|
|
397
|
-
|
|
397
|
+
E(r, e, l), b(e, n);
|
|
398
398
|
},
|
|
399
399
|
p(r, l) {
|
|
400
400
|
l[0] & /*$_*/
|
|
401
401
|
2097152 && a !== (a = /*$_*/
|
|
402
|
-
r[21]("recentSearch") + "") &&
|
|
402
|
+
r[21]("recentSearch") + "") && q(n, a);
|
|
403
403
|
},
|
|
404
404
|
d(r) {
|
|
405
|
-
r &&
|
|
405
|
+
r && j(e);
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
@@ -416,22 +416,22 @@ function ve(t) {
|
|
|
416
416
|
);
|
|
417
417
|
return {
|
|
418
418
|
c() {
|
|
419
|
-
e = C("div"), i && i.c(), a = z(), n = C("p"), l =
|
|
419
|
+
e = C("div"), i && i.c(), a = z(), n = C("p"), l = H(r), g(n, "class", "SearchMessage"), g(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
420
420
|
(t[10] == "true" ? "WithIcon" : ""));
|
|
421
421
|
},
|
|
422
422
|
m(c, m) {
|
|
423
|
-
|
|
423
|
+
E(c, e, m), i && i.m(e, null), b(e, a), b(e, n), b(n, l);
|
|
424
424
|
},
|
|
425
425
|
p(c, m) {
|
|
426
426
|
/*notfoundicon*/
|
|
427
427
|
c[10] === "true" ? i || (i = ye(), i.c(), i.m(e, a)) : i && (i.d(1), i = null), m[0] & /*$_*/
|
|
428
428
|
2097152 && r !== (r = /*$_*/
|
|
429
|
-
c[21]("noRecentSearches") + "") &&
|
|
429
|
+
c[21]("noRecentSearches") + "") && q(l, r), m[0] & /*notfoundicon*/
|
|
430
430
|
1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
431
431
|
(c[10] == "true" ? "WithIcon" : "")) && g(e, "class", s);
|
|
432
432
|
},
|
|
433
433
|
d(c) {
|
|
434
|
-
c &&
|
|
434
|
+
c && j(e), i && i.d();
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
437
|
}
|
|
@@ -442,10 +442,10 @@ function ye(t) {
|
|
|
442
442
|
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>', g(e, "class", "SearchErrorIcon");
|
|
443
443
|
},
|
|
444
444
|
m(a, n) {
|
|
445
|
-
|
|
445
|
+
E(a, e, n);
|
|
446
446
|
},
|
|
447
447
|
d(a) {
|
|
448
|
-
a &&
|
|
448
|
+
a && j(e);
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
}
|
|
@@ -465,7 +465,7 @@ function ke(t) {
|
|
|
465
465
|
m(r, l) {
|
|
466
466
|
for (let s = 0; s < n.length; s += 1)
|
|
467
467
|
n[s] && n[s].m(r, l);
|
|
468
|
-
|
|
468
|
+
E(r, e, l);
|
|
469
469
|
},
|
|
470
470
|
p(r, l) {
|
|
471
471
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, mbsource, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
|
@@ -485,7 +485,7 @@ function ke(t) {
|
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
d(r) {
|
|
488
|
-
r &&
|
|
488
|
+
r && j(e), et(n, r);
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
}
|
|
@@ -574,7 +574,7 @@ function Ce(t) {
|
|
|
574
574
|
);
|
|
575
575
|
},
|
|
576
576
|
m(d, p) {
|
|
577
|
-
|
|
577
|
+
E(d, e, p);
|
|
578
578
|
},
|
|
579
579
|
p(d, p) {
|
|
580
580
|
p[0] & /*endpoint*/
|
|
@@ -681,7 +681,7 @@ function Ce(t) {
|
|
|
681
681
|
);
|
|
682
682
|
},
|
|
683
683
|
d(d) {
|
|
684
|
-
d &&
|
|
684
|
+
d && j(e);
|
|
685
685
|
}
|
|
686
686
|
};
|
|
687
687
|
}
|
|
@@ -698,24 +698,24 @@ function Re(t) {
|
|
|
698
698
|
);
|
|
699
699
|
return {
|
|
700
700
|
c() {
|
|
701
|
-
e = C("div"), f && f.c(), a = z(), n = C("p"), l =
|
|
701
|
+
e = C("div"), f && f.c(), a = z(), n = C("p"), l = H(r), s = z(), i = C("p"), m = H(c), g(n, "class", "SearchMessage"), g(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
702
702
|
(t[10] == "true" ? "WithIcon" : ""));
|
|
703
703
|
},
|
|
704
704
|
m(w, d) {
|
|
705
|
-
|
|
705
|
+
E(w, e, d), f && f.m(e, null), b(e, a), b(e, n), b(n, l), b(e, s), b(e, i), b(i, m);
|
|
706
706
|
},
|
|
707
707
|
p(w, d) {
|
|
708
708
|
/*notfoundicon*/
|
|
709
709
|
w[10] === "true" ? f || (f = Fe(), f.c(), f.m(e, a)) : f && (f.d(1), f = null), d[0] & /*$_*/
|
|
710
710
|
2097152 && r !== (r = /*$_*/
|
|
711
|
-
w[21]("notFound") + "") &&
|
|
711
|
+
w[21]("notFound") + "") && q(l, r), d[0] & /*$_*/
|
|
712
712
|
2097152 && c !== (c = /*$_*/
|
|
713
|
-
w[21]("notFoundText") + "") &&
|
|
713
|
+
w[21]("notFoundText") + "") && q(m, c), d[0] & /*notfoundicon*/
|
|
714
714
|
1024 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
715
715
|
(w[10] == "true" ? "WithIcon" : "")) && g(e, "class", h);
|
|
716
716
|
},
|
|
717
717
|
d(w) {
|
|
718
|
-
w &&
|
|
718
|
+
w && j(e), f && f.d();
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
}
|
|
@@ -726,10 +726,10 @@ function Fe(t) {
|
|
|
726
726
|
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>', g(e, "class", "SearchErrorIcon");
|
|
727
727
|
},
|
|
728
728
|
m(a, n) {
|
|
729
|
-
|
|
729
|
+
E(a, e, n);
|
|
730
730
|
},
|
|
731
731
|
d(a) {
|
|
732
|
-
a &&
|
|
732
|
+
a && j(e);
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
735
|
}
|
|
@@ -747,7 +747,7 @@ function mt(t) {
|
|
|
747
747
|
let M = G(t), k = M(t);
|
|
748
748
|
return {
|
|
749
749
|
c() {
|
|
750
|
-
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 =
|
|
750
|
+
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"), f = de("path"), d = z(), v && v.c(), B = z(), N = C("div"), V = z(), k.c(), g(r, "class", "SearchIcon"), g(s, "class", "SearchInput"), g(s, "type", "search"), g(s, "placeholder", i = /*$_*/
|
|
751
751
|
t[21]("placeHolderSearchGames")), g(s, "maxlength", ft), g(f, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), g(f, "stroke", "#717171"), g(f, "stroke-width", "2"), g(f, "stroke-linecap", "round"), g(f, "stroke-linejoin", "round"), g(h, "width", "11"), g(h, "height", "11"), g(h, "fill", "none"), g(h, "xmlns", "http://www.w3.org/2000/svg"), g(m, "class", w = "SearchClearButton " + /*cancelbutton*/
|
|
752
752
|
(t[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
753
753
|
(t[12].length != 0 ? "" : "NotVisible")), g(n, "class", p = "Search " + /*searchCancelled*/
|
|
@@ -758,7 +758,7 @@ function mt(t) {
|
|
|
758
758
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
759
759
|
},
|
|
760
760
|
m(_, T) {
|
|
761
|
-
|
|
761
|
+
E(_, e, T), b(e, a), b(a, n), b(n, r), b(n, l), b(n, s), he(
|
|
762
762
|
s,
|
|
763
763
|
/*searchValue*/
|
|
764
764
|
t[12]
|
|
@@ -808,17 +808,17 @@ function mt(t) {
|
|
|
808
808
|
512 && x !== (x = /*cancelbutton*/
|
|
809
809
|
_[9] != "true" ? "OverlayCancel" : "") && g(N, "class", x), M === (M = G(_)) && k ? k.p(_, T) : (k.d(1), k = M(_), k && (k.c(), k.m(e, null)));
|
|
810
810
|
},
|
|
811
|
-
i:
|
|
812
|
-
o:
|
|
811
|
+
i: ue,
|
|
812
|
+
o: ue,
|
|
813
813
|
d(_) {
|
|
814
|
-
_ &&
|
|
814
|
+
_ && j(e), t[34](null), v && v.d(), k.d(), t[37](null), A = !1, Xe(W);
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
let ft = 50;
|
|
819
819
|
function gt(t, e, a) {
|
|
820
820
|
let n;
|
|
821
|
-
Ke(t,
|
|
821
|
+
Ke(t, tt, (o) => a(21, n = o));
|
|
822
822
|
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: h = "" } = e, { integratedgameframedesktop: f = "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, I = !1, P, X = !1, K, Q, re = [];
|
|
823
823
|
const Te = () => {
|
|
824
824
|
fetch(B).then((S) => S.json()).then((S) => {
|
|
@@ -947,9 +947,9 @@ function gt(t, e, a) {
|
|
|
947
947
|
1610612736 && s && i && Ie(), t.$$.dirty[0] & /*showfavorites*/
|
|
948
948
|
256 | t.$$.dirty[1] & /*isLoggedIn*/
|
|
949
949
|
2 && N && X && Ge(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
950
|
-
16388 && m && P &&
|
|
951
|
-
16392 && h && P &&
|
|
952
|
-
18432 && P &&
|
|
950
|
+
16388 && m && P && at(P, m), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
951
|
+
16392 && h && P && nt(P, h), t.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
952
|
+
18432 && P && rt(P, `${A}.Style`);
|
|
953
953
|
}, [
|
|
954
954
|
r,
|
|
955
955
|
c,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-Dyto4ugG.cjs");function $(a,t){e.addMessages(a,t)}function Le(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."}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-Dyto4ugG.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}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 Te(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function je(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function Ee(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,s,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",s="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&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function De(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[12].length<2)return ze;if(m[15].length!=0)return Ie}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",s="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(m,f){c&&c.m(m,f),e.insert(m,t,f),e.insert(m,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(m,f){l===(l=i(m))&&c?c.p(m,f):(c&&c.d(1),c=l&&l(m),c&&(c.c(),c.m(t.parentNode,t))),m[13]===!1?u?u.p(m,f):(u=le(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[12].length>=2&&m[15].length==0?h?h.p(m,f):(h=ce(m),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(m[17]==!0?"":"NotVisible"))&&e.attr(n,"class",s)},d(m){m&&(e.detach(t),e.detach(n)),c&&c.d(m),u&&u.d(),h&&h.d()}}}function Ge(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("loading")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function Ie(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("searchResult")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function ze(a){let t,n,r=a[15].length!==0&&re(a),s=a[15].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),s&&s.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.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?s?s.p(i,l):(s=se(i),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),s&&s.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(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("recentSearch")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function se(a){let t,n,r,s=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&oe();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(s),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=oe(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),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 oe(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 s=0;s<n.length;s+=1)r[s]=ie(ae(a,n,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]&35162623){n=e.ensure_array_like(s[15]);let l;for(l=0;l<n.length;l+=1){const c=ae(s,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(s){s&&e.detach(t),e.destroy_each(r,s)}}}function ie(a){let t,n,r,s,i,l,c,u,h,m,f,S;return{c(){var d;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",s=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=((d=a[53].advancedTags)==null?void 0:d.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",m=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(d,g){e.insert(d,t,g)},p(d,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&e.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",d[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&e.set_custom_element_data(t,"lang",d[1]),g[0]&32768&&n!==(n=d[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=d[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=d[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=d[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=d[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=d[53].advancedTags)==null?void 0:T.length)>0&&d[25](d[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=d[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=d[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&32768&&m!==(m=d[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&32768&&f!==(f=d[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=d[53].details?d[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&e.detach(t)}}}function ce(a){let t,n,r,s=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,m,f=a[10]==="true"&&ue();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",m="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,d){e.insert(S,t,d),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,d){S[10]==="true"?f||(f=ue(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),d[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),d[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),d[0]&1024&&m!==(m="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",m)},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 Ne(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,T,j,D,P,I,N,b=a[9]==="true"&&ne(a);function F(_,C){return _[18]?Ge:De}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=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="#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"),m=e.svg_element("svg"),f=e.svg_element("path"),d=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",xe),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(m,"width","11"),e.attr(m,"height","11"),e.attr(m,"fill","none"),e.attr(m,"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",D=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,s),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,m),e.append(m,f),e.append(r,d),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),I||(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])],I=!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&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,C):(v.d(1),v=G(_),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),I=!1,e.run_all(N)}}}let xe=50;function Pe(a,t,n){let r;e.component_subscribe(a,e.$format,o=>n(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,C=!0,M=!1,L=!1,E,O=!1,A,q,J=[];const de=()=>{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(o=>{$(o,ee[o])});const Z=o=>{o.data&&o.data.type=="SearchedItemClicked"&&be(o.data.gameId),o.data.type=="UserSessionID"&&(n(19,A=o.data.session),n(20,q=o.data.userid),n(32,O=!0)),o.data.type=="CategoryChange"&&H()},Y=()=>{if(n(13,C=!1),n(17,M=!0),s&&i&&u&&v.length<2){n(15,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 R=new URL(`${s}/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=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},he=()=>{D!="true"&&H()},fe=o=>new Promise((p,w)=>{n(18,L=!0),fetch(o.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=(o,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),pe=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},_e=()=>{n(32,O=!0),n(19,A=l),n(20,q=c)},X=o=>J.findIndex(p=>p==o)!==-1,Se=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.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),Te(new Date(k),new Date(Fe))&&je(new Date(k),new Date(U))&&(p=o[y].name)}),p},be=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{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=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},we=()=>{Le(u)};e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ve(){v=this.value,n(12,v)}function ye(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(16,_)})}const ke=()=>K(),Ce=()=>H();function Re(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,n(14,E)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(28,i=o.datasource),"session"in o&&n(29,l=o.session),"userid"in o&&n(30,c=o.userid),"lang"in o&&n(1,u=o.lang),"clientstyling"in o&&n(2,h=o.clientstyling),"clientstylingurl"in o&&n(3,m=o.clientstylingurl),"integratedgameframedesktop"in o&&n(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&n(5,S=o.integratedgameframemobile),"showgamename"in o&&n(6,d=o.showgamename),"gamepagemodalurl"in o&&n(7,g=o.gamepagemodalurl),"translationurl"in o&&n(31,T=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,D=o.cancelbutton),"notfoundicon"in o&&n(10,P=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{if(a.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),fe(o).then(p=>{e.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&&de(),a.$$.dirty[0]&1610612736&&l&&c&&_e(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&O&&pe(),a.$$.dirty[0]&16388&&h&&E&&e.setClientStyling(E,h),a.$$.dirty[0]&16392&&m&&E&&e.setClientStylingURL(E,m),a.$$.dirty[0]&18432&&E&&e.setStreamStyling(E,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,D,P,I,v,C,E,b,_,M,L,A,q,r,N,Y,he,Se,H,K,i,l,c,T,O,ve,ye,ke,Ce,Re]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Pe,Ne,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},Ee,[-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(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnail-BLohslyt.cjs");function $(a,t){e.addMessages(a,t)}function Le(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."}};if(typeof window!="undefined"){let a=function(t){return function(...n){try{return t.apply(this,n)}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=a(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnail-BLohslyt.cjs")).then(t=>t.CasinoGameThumbnail_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",t.element)})}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 Te(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()>r.getTime()}function je(a,t){W(2,arguments);var n=x(a),r=x(t);return n.getTime()<r.getTime()}function Ee(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,s,i,l;return{c(){t=e.element("small"),r=e.text(n),e.attr(t,"class",s="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&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function De(a){let t,n,r,s;function i(m,f){if(m[17]==!0&&m[12].length<2)return ze;if(m[15].length!=0)return Ie}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",s="SearchResultsContainer "+(a[17]==!0?"":"NotVisible"))},m(m,f){c&&c.m(m,f),e.insert(m,t,f),e.insert(m,n,f),u&&u.m(n,null),e.append(n,r),h&&h.m(n,null)},p(m,f){l===(l=i(m))&&c?c.p(m,f):(c&&c.d(1),c=l&&l(m),c&&(c.c(),c.m(t.parentNode,t))),m[13]===!1?u?u.p(m,f):(u=le(m),u.c(),u.m(n,r)):u&&(u.d(1),u=null),m[12].length>=2&&m[15].length==0?h?h.p(m,f):(h=ce(m),h.c(),h.m(n,null)):h&&(h.d(1),h=null),f[0]&131072&&s!==(s="SearchResultsContainer "+(m[17]==!0?"":"NotVisible"))&&e.attr(n,"class",s)},d(m){m&&(e.detach(t),e.detach(n)),c&&c.d(m),u&&u.d(),h&&h.d()}}}function Ge(a){let t,n=a[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("loading")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function Ie(a){let t,n=a[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(n),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("searchResult")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function ze(a){let t,n,r=a[15].length!==0&&re(a),s=a[15].length==0&&se(a);return{c(){r&&r.c(),t=e.space(),s&&s.c(),n=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.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?s?s.p(i,l):(s=se(i),s.c(),s.m(n.parentNode,n)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(n)),r&&r.d(i),s&&s.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(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&n!==(n=s[21]("recentSearch")+"")&&e.set_data(r,n)},d(s){s&&e.detach(t)}}}function se(a){let t,n,r,s=a[21]("noRecentSearches")+"",i,l,c=a[10]==="true"&&oe();return{c(){t=e.element("div"),c&&c.c(),n=e.space(),r=e.element("p"),i=e.text(s),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=oe(),c.c(),c.m(t,n)):c&&(c.d(1),c=null),h[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),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 oe(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 s=0;s<n.length;s+=1)r[s]=ie(ae(a,n,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]&35162623){n=e.ensure_array_like(s[15]);let l;for(l=0;l<n.length;l+=1){const c=ae(s,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(s){s&&e.detach(t),e.destroy_each(r,s)}}}function ie(a){let t,n,r,s,i,l,c,u,h,m,f,S;return{c(){var d;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",s=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=((d=a[53].advancedTags)==null?void 0:d.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",m=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(d,g){e.insert(d,t,g)},p(d,g){var T;g[0]&1&&e.set_custom_element_data(t,"endpoint",d[0]),g[0]&524288&&e.set_custom_element_data(t,"session",d[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",d[20]),g[0]&256&&e.set_custom_element_data(t,"favorites",d[8]),g[0]&2&&e.set_custom_element_data(t,"lang",d[1]),g[0]&32768&&n!==(n=d[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",n),g[0]&32768&&r!==(r=d[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=d[53].vendor.displayName)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=d[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=d[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((T=d[53].advancedTags)==null?void 0:T.length)>0&&d[25](d[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=d[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&h!==(h=d[53].id)&&e.set_custom_element_data(t,"gameid",h),g[0]&64&&e.set_custom_element_data(t,"showgamename",d[6]),g[0]&32768&&m!==(m=d[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",m),g[0]&32768&&f!==(f=d[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),g[0]&32768&&S!==(S=d[53].details?d[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",d[4]),g[0]&2048&&e.set_custom_element_data(t,"mbsource",d[11]),g[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",d[5]),g[0]&4&&e.set_custom_element_data(t,"clientstyling",d[2]),g[0]&8&&e.set_custom_element_data(t,"clientstylingurl",d[3]),g[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",d[7])},d(d){d&&e.detach(t)}}}function ce(a){let t,n,r,s=a[21]("notFound")+"",i,l,c,u=a[21]("notFoundText")+"",h,m,f=a[10]==="true"&&ue();return{c(){t=e.element("div"),f&&f.c(),n=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),h=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",m="ResultsContainerError "+(a[10]=="true"?"WithIcon":""))},m(S,d){e.insert(S,t,d),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,d){S[10]==="true"?f||(f=ue(),f.c(),f.m(t,n)):f&&(f.d(1),f=null),d[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),d[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(h,u),d[0]&1024&&m!==(m="ResultsContainerError "+(S[10]=="true"?"WithIcon":""))&&e.attr(t,"class",m)},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 Ne(a){let t,n,r,s,i,l,c,u,h,m,f,S,d,g,T,j,D,P,I,N,b=a[9]==="true"&&ne(a);function F(_,C){return _[18]?Ge:De}let G=F(a),v=G(a);return{c(){t=e.element("div"),n=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="#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"),m=e.svg_element("svg"),f=e.svg_element("path"),d=e.space(),b&&b.c(),T=e.space(),j=e.element("div"),P=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=a[21]("placeHolderSearchGames")),e.attr(l,"maxlength",xe),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(m,"width","11"),e.attr(m,"height","11"),e.attr(m,"fill","none"),e.attr(m,"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",D=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,s),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,m),e.append(m,f),e.append(r,d),b&&b.m(r,null),e.append(t,T),e.append(t,j),e.append(t,P),v.m(t,null),a[37](t),I||(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])],I=!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&&D!==(D=_[9]!="true"?"OverlayCancel":"")&&e.attr(j,"class",D),G===(G=F(_))&&v?v.p(_,C):(v.d(1),v=G(_),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),I=!1,e.run_all(N)}}}let xe=50;function Pe(a,t,n){let r;e.component_subscribe(a,e.$format,o=>n(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:S="false"}=t,{showgamename:d=""}=t,{gamepagemodalurl:g="true"}=t,{translationurl:T=""}=t,{showfavorites:j=""}=t,{cancelbutton:D="true"}=t,{notfoundicon:P="false"}=t,{mbsource:I}=t,N=window.navigator.userAgent,b=[],F=[],G={},v="",_,C=!0,M=!1,L=!1,E,O=!1,A,q,J=[];const de=()=>{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(o=>{$(o,ee[o])});const Z=o=>{o.data&&o.data.type=="SearchedItemClicked"&&be(o.data.gameId),o.data.type=="UserSessionID"&&(n(19,A=o.data.session),n(20,q=o.data.userid),n(32,O=!0)),o.data.type=="CategoryChange"&&H()},Y=()=>{if(n(13,C=!1),n(17,M=!0),s&&i&&u&&v.length<2){n(15,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 R=new URL(`${s}/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=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},he=()=>{D!="true"&&H()},fe=o=>new Promise((p,w)=>{n(18,L=!0),fetch(o.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=(o,p)=>new Promise((w,y)=>{n(18,L=!0),p&&Object.keys(G).indexOf(p)>=0?(n(18,L=!1),w(G[p])):fetch(o).then(k=>k.json()).then(k=>{n(18,L=!1),k.error||(G[k[0].gameId]=k[0]),w(k[0])}).catch(k=>{n(18,L=!1),console.error(k),y(k)})}),pe=()=>{const o=new URL(`${s}/v1/player/${q}/favorites/`);n(18,L=!0);let p={method:"GET",headers:{"X-SessionID":A}};fetch(o.href,p).then(w=>w.json()).then(w=>{n(18,L=!1),J=w.items.map(y=>y.id)})},_e=()=>{n(32,O=!0),n(19,A=l),n(20,q=c)},X=o=>J.findIndex(p=>p==o)!==-1,Se=o=>{if((o==null?void 0:o.length)===0)return"";let p,w=99999999999,y;const k=new Date(Date.now());return o.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),Te(new Date(k),new Date(Fe))&&je(new Date(k),new Date(U))&&(p=o[y].name)}),p},be=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{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=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},we=()=>{Le(u)};e.onMount(()=>(window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)}));function ve(){v=this.value,n(12,v)}function ye(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,n(16,_)})}const ke=()=>K(),Ce=()=>H();function Re(o){e.binding_callbacks[o?"unshift":"push"](()=>{E=o,n(14,E)})}return a.$$set=o=>{"endpoint"in o&&n(0,s=o.endpoint),"datasource"in o&&n(28,i=o.datasource),"session"in o&&n(29,l=o.session),"userid"in o&&n(30,c=o.userid),"lang"in o&&n(1,u=o.lang),"clientstyling"in o&&n(2,h=o.clientstyling),"clientstylingurl"in o&&n(3,m=o.clientstylingurl),"integratedgameframedesktop"in o&&n(4,f=o.integratedgameframedesktop),"integratedgameframemobile"in o&&n(5,S=o.integratedgameframemobile),"showgamename"in o&&n(6,d=o.showgamename),"gamepagemodalurl"in o&&n(7,g=o.gamepagemodalurl),"translationurl"in o&&n(31,T=o.translationurl),"showfavorites"in o&&n(8,j=o.showfavorites),"cancelbutton"in o&&n(9,D=o.cancelbutton),"notfoundicon"in o&&n(10,P=o.notfoundicon),"mbsource"in o&&n(11,I=o.mbsource)},a.$$.update=()=>{if(a.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(N)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),fe(o).then(p=>{e.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&&de(),a.$$.dirty[0]&1610612736&&l&&c&&_e(),a.$$.dirty[0]&256|a.$$.dirty[1]&2&&j&&O&&pe(),a.$$.dirty[0]&16388&&h&&E&&e.setClientStyling(E,h),a.$$.dirty[0]&16392&&m&&E&&e.setClientStylingURL(E,m),a.$$.dirty[0]&18432&&E&&e.setStreamStyling(E,`${I}.Style`)},[s,u,h,m,f,S,d,g,j,D,P,I,v,C,E,b,_,M,L,A,q,r,N,Y,he,Se,H,K,i,l,c,T,O,ve,ye,ke,Ce,Re]}class me extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Pe,Ne,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},Ee,[-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(me,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},mbsource:{}},[],[],!0);exports.default=me;
|