@everymatrix/casino-search-nd 1.86.2 → 1.86.4
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-CKbbtXF6.js → CasinoGameThumbnailNd-CnY3U2Vt.js} +1163 -1182
- package/components/{CasinoGameThumbnailNd-JoJQ3ksA.js → CasinoGameThumbnailNd-CpsuSviE.js} +1177 -1196
- package/components/CasinoGameThumbnailNd-sr9Uj-v7.cjs +47 -0
- package/components/{CasinoSearchNd-CLuKlqui.js → CasinoSearchNd-CUFMfMYJ.js} +50 -50
- package/components/{CasinoSearchNd-CO8grAZY.cjs → CasinoSearchNd-ColMWiu_.cjs} +1 -1
- package/components/{CasinoSearchNd-C9idzt1M.js → CasinoSearchNd-DDkh2KaB.js} +52 -52
- 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-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/{ui-image-BX-FBhad.cjs → ui-image-BDXyFHck.cjs} +1 -1
- package/stencil/{ui-image-CP8Lp7fB.js → ui-image-Cc8wLmDe.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image-Ch-GHki1.js → ui-image-wH6lu7wS.js} +1 -1
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/components/CasinoGameThumbnailNd-DMpN2Rsr.cjs +0 -47
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as $e, $ as et, c as tt, S as at, i as nt, s as rt, f as C, b as ot,
|
|
1
|
+
import { a as $e, $ as et, c as tt, S as at, i as nt, s as rt, f as C, b as ot, e as k, d as N, g as pe, h as p, j as ie, k as I, l as w, m as Se, n as Y, o as _e, p as E, r as st, q as lt, t as it, u as ct, v as ut, w as x, x as H, y as we, z as ht, A as dt, B as be, C as mt, D as gt, E as ve, F as je, G as ft, H as u, I as pt } from "./CasinoGameThumbnailNd-CnY3U2Vt.js";
|
|
2
2
|
function St(a, e) {
|
|
3
3
|
$e(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-CnY3U2Vt.js").then((e) => e.J).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 ke(a) {
|
|
|
222
222
|
), r, o, l, s;
|
|
223
223
|
return {
|
|
224
224
|
c() {
|
|
225
|
-
e = k("small"), r =
|
|
225
|
+
e = k("small"), r = x(t), p(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
|
|
226
226
|
(a[16] ? "NotVisible" : ""));
|
|
227
227
|
},
|
|
228
228
|
m(i, c) {
|
|
229
|
-
|
|
229
|
+
I(i, e, c), w(e, r), l || (s = Y(
|
|
230
230
|
e,
|
|
231
231
|
"click",
|
|
232
232
|
/*click_handler_1*/
|
|
@@ -236,12 +236,12 @@ function ke(a) {
|
|
|
236
236
|
p(i, c) {
|
|
237
237
|
c[0] & /*$_*/
|
|
238
238
|
2097152 && t !== (t = /*$_*/
|
|
239
|
-
i[21]("cancel") + "") &&
|
|
239
|
+
i[21]("cancel") + "") && H(r, t), c[0] & /*searchCancelled*/
|
|
240
240
|
65536 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
|
|
241
241
|
(i[16] ? "NotVisible" : "")) && p(e, "class", o);
|
|
242
242
|
},
|
|
243
243
|
d(i) {
|
|
244
|
-
i &&
|
|
244
|
+
i && E(e), l = !1, s();
|
|
245
245
|
}
|
|
246
246
|
};
|
|
247
247
|
}
|
|
@@ -274,7 +274,7 @@ function yt(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), I(h, e, m), I(h, t, m), c && c.m(t, null), w(t, r), d && d.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 yt(a) {
|
|
|
285
285
|
(h[17] == !0 ? "" : "NotVisible")) && p(t, "class", o);
|
|
286
286
|
},
|
|
287
287
|
d(h) {
|
|
288
|
-
h && (
|
|
288
|
+
h && (E(e), E(t)), i && i.d(h), c && c.d(), d && d.d();
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
@@ -296,18 +296,18 @@ function kt(a) {
|
|
|
296
296
|
), r;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
299
|
-
e = k("p"), r =
|
|
299
|
+
e = k("p"), r = x(t), p(e, "class", "LoadingContent");
|
|
300
300
|
},
|
|
301
301
|
m(o, l) {
|
|
302
|
-
|
|
302
|
+
I(o, e, l), w(e, r);
|
|
303
303
|
},
|
|
304
304
|
p(o, l) {
|
|
305
305
|
l[0] & /*$_*/
|
|
306
306
|
2097152 && t !== (t = /*$_*/
|
|
307
|
-
o[21]("loading") + "") &&
|
|
307
|
+
o[21]("loading") + "") && H(r, t);
|
|
308
308
|
},
|
|
309
309
|
d(o) {
|
|
310
|
-
o &&
|
|
310
|
+
o && E(e);
|
|
311
311
|
}
|
|
312
312
|
};
|
|
313
313
|
}
|
|
@@ -318,18 +318,18 @@ function Rt(a) {
|
|
|
318
318
|
), r;
|
|
319
319
|
return {
|
|
320
320
|
c() {
|
|
321
|
-
e = k("p"), r =
|
|
321
|
+
e = k("p"), r = x(t), p(e, "class", "SearchMessage");
|
|
322
322
|
},
|
|
323
323
|
m(o, l) {
|
|
324
|
-
|
|
324
|
+
I(o, e, l), w(e, r);
|
|
325
325
|
},
|
|
326
326
|
p(o, l) {
|
|
327
327
|
l[0] & /*$_*/
|
|
328
328
|
2097152 && t !== (t = /*$_*/
|
|
329
|
-
o[21]("searchResult") + "") &&
|
|
329
|
+
o[21]("searchResult") + "") && H(r, t);
|
|
330
330
|
},
|
|
331
331
|
d(o) {
|
|
332
|
-
o &&
|
|
332
|
+
o && E(e);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
@@ -346,7 +346,7 @@ function Ct(a) {
|
|
|
346
346
|
r && r.c(), e = N(), o && o.c(), t = je();
|
|
347
347
|
},
|
|
348
348
|
m(l, s) {
|
|
349
|
-
r && r.m(l, s),
|
|
349
|
+
r && r.m(l, s), I(l, e, s), o && o.m(l, s), I(l, t, s);
|
|
350
350
|
},
|
|
351
351
|
p(l, s) {
|
|
352
352
|
/*searchArray*/
|
|
@@ -354,7 +354,7 @@ function Ct(a) {
|
|
|
354
354
|
l[13].length == 0 ? o ? o.p(l, s) : (o = Ce(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
|
355
355
|
},
|
|
356
356
|
d(l) {
|
|
357
|
-
l && (
|
|
357
|
+
l && (E(e), E(t)), r && r.d(l), o && o.d(l);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
}
|
|
@@ -365,18 +365,18 @@ function Re(a) {
|
|
|
365
365
|
), r;
|
|
366
366
|
return {
|
|
367
367
|
c() {
|
|
368
|
-
e = k("p"), r =
|
|
368
|
+
e = k("p"), r = x(t), p(e, "class", "SearchMessage");
|
|
369
369
|
},
|
|
370
370
|
m(o, l) {
|
|
371
|
-
|
|
371
|
+
I(o, e, l), w(e, r);
|
|
372
372
|
},
|
|
373
373
|
p(o, l) {
|
|
374
374
|
l[0] & /*$_*/
|
|
375
375
|
2097152 && t !== (t = /*$_*/
|
|
376
|
-
o[21]("recentSearch") + "") &&
|
|
376
|
+
o[21]("recentSearch") + "") && H(r, t);
|
|
377
377
|
},
|
|
378
378
|
d(o) {
|
|
379
|
-
o &&
|
|
379
|
+
o && E(e);
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
}
|
|
@@ -390,22 +390,22 @@ function Ce(a) {
|
|
|
390
390
|
);
|
|
391
391
|
return {
|
|
392
392
|
c() {
|
|
393
|
-
e = k("div"), i && i.c(), t = N(), r = k("p"), l =
|
|
393
|
+
e = k("div"), i && i.c(), t = N(), r = k("p"), l = x(o), p(r, "class", "SearchMessage"), p(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
394
394
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
395
395
|
},
|
|
396
396
|
m(c, d) {
|
|
397
|
-
|
|
397
|
+
I(c, e, d), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
|
|
398
398
|
},
|
|
399
399
|
p(c, d) {
|
|
400
400
|
/*notfoundicon*/
|
|
401
401
|
c[11] === "true" ? i || (i = Fe(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), d[0] & /*$_*/
|
|
402
402
|
2097152 && o !== (o = /*$_*/
|
|
403
|
-
c[21]("noRecentSearches") + "") &&
|
|
403
|
+
c[21]("noRecentSearches") + "") && H(l, o), d[0] & /*notfoundicon*/
|
|
404
404
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
405
405
|
(c[11] == "true" ? "WithIcon" : "")) && p(e, "class", s);
|
|
406
406
|
},
|
|
407
407
|
d(c) {
|
|
408
|
-
c &&
|
|
408
|
+
c && E(e), i && i.d();
|
|
409
409
|
}
|
|
410
410
|
};
|
|
411
411
|
}
|
|
@@ -416,10 +416,10 @@ function Fe(a) {
|
|
|
416
416
|
e = k("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>', p(e, "class", "SearchErrorIcon");
|
|
417
417
|
},
|
|
418
418
|
m(t, r) {
|
|
419
|
-
|
|
419
|
+
I(t, e, r);
|
|
420
420
|
},
|
|
421
421
|
d(t) {
|
|
422
|
-
t &&
|
|
422
|
+
t && E(e);
|
|
423
423
|
}
|
|
424
424
|
};
|
|
425
425
|
}
|
|
@@ -439,7 +439,7 @@ function Le(a) {
|
|
|
439
439
|
m(o, l) {
|
|
440
440
|
for (let s = 0; s < r.length; s += 1)
|
|
441
441
|
r[s] && r[s].m(o, l);
|
|
442
|
-
|
|
442
|
+
I(o, e, l);
|
|
443
443
|
},
|
|
444
444
|
p(o, l) {
|
|
445
445
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, getRequiredIcon, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
@@ -459,7 +459,7 @@ function Le(a) {
|
|
|
459
459
|
}
|
|
460
460
|
},
|
|
461
461
|
d(o) {
|
|
462
|
-
o &&
|
|
462
|
+
o && E(e), ft(r, o);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
}
|
|
@@ -552,7 +552,7 @@ function Te(a) {
|
|
|
552
552
|
);
|
|
553
553
|
},
|
|
554
554
|
m(g, S) {
|
|
555
|
-
|
|
555
|
+
I(g, e, S);
|
|
556
556
|
},
|
|
557
557
|
p(g, S) {
|
|
558
558
|
S[0] & /*endpoint*/
|
|
@@ -664,7 +664,7 @@ function Te(a) {
|
|
|
664
664
|
);
|
|
665
665
|
},
|
|
666
666
|
d(g) {
|
|
667
|
-
g &&
|
|
667
|
+
g && E(e);
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
670
|
}
|
|
@@ -681,24 +681,24 @@ function Ie(a) {
|
|
|
681
681
|
);
|
|
682
682
|
return {
|
|
683
683
|
c() {
|
|
684
|
-
e = k("div"), m && m.c(), t = N(), r = k("p"), l =
|
|
684
|
+
e = k("div"), m && m.c(), t = N(), r = k("p"), l = x(o), s = N(), i = k("p"), d = x(c), p(r, "class", "SearchMessage"), p(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
685
685
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
686
686
|
},
|
|
687
687
|
m(v, T) {
|
|
688
|
-
|
|
688
|
+
I(v, e, T), m && m.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, d);
|
|
689
689
|
},
|
|
690
690
|
p(v, T) {
|
|
691
691
|
/*notfoundicon*/
|
|
692
692
|
v[11] === "true" ? m || (m = Ee(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), T[0] & /*$_*/
|
|
693
693
|
2097152 && o !== (o = /*$_*/
|
|
694
|
-
v[21]("notFound") + "") &&
|
|
694
|
+
v[21]("notFound") + "") && H(l, o), T[0] & /*$_*/
|
|
695
695
|
2097152 && c !== (c = /*$_*/
|
|
696
|
-
v[21]("notFoundText") + "") &&
|
|
696
|
+
v[21]("notFoundText") + "") && H(d, c), T[0] & /*notfoundicon*/
|
|
697
697
|
2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
698
698
|
(v[11] == "true" ? "WithIcon" : "")) && p(e, "class", h);
|
|
699
699
|
},
|
|
700
700
|
d(v) {
|
|
701
|
-
v &&
|
|
701
|
+
v && E(e), m && m.d();
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
704
|
}
|
|
@@ -709,10 +709,10 @@ function Ee(a) {
|
|
|
709
709
|
e = k("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>', p(e, "class", "SearchErrorIcon");
|
|
710
710
|
},
|
|
711
711
|
m(t, r) {
|
|
712
|
-
|
|
712
|
+
I(t, e, r);
|
|
713
713
|
},
|
|
714
714
|
d(t) {
|
|
715
|
-
t &&
|
|
715
|
+
t && E(e);
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
}
|
|
@@ -730,7 +730,7 @@ function Ft(a) {
|
|
|
730
730
|
let J = V(a), j = J(a);
|
|
731
731
|
return {
|
|
732
732
|
c() {
|
|
733
|
-
e = k("div"), t = k("div"), r = k("div"), o = k("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = k("input"), c = N(), d = k("span"), h =
|
|
733
|
+
e = k("div"), t = k("div"), r = k("div"), o = k("div"), o.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = k("input"), c = N(), d = k("span"), h = pe("svg"), m = pe("path"), T = N(), F && F.c(), S = N(), z = k("div"), W = N(), j.c(), p(o, "class", "SearchIcon"), p(s, "class", "SearchInput"), p(s, "type", "search"), p(s, "placeholder", i = /*$_*/
|
|
734
734
|
a[21]("placeHolderSearchGames")), p(s, "maxlength", Ge), p(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), p(m, "stroke", "#717171"), p(m, "stroke-width", "2"), p(m, "stroke-linecap", "round"), p(m, "stroke-linejoin", "round"), p(h, "width", "11"), p(h, "height", "11"), p(h, "fill", "none"), p(h, "xmlns", "http://www.w3.org/2000/svg"), p(d, "class", v = "SearchClearButton " + /*cancelbutton*/
|
|
735
735
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
736
736
|
(a[14].length != 0 ? "" : "NotVisible")), p(r, "class", g = "Search " + /*searchCancelled*/
|
|
@@ -741,7 +741,7 @@ function Ft(a) {
|
|
|
741
741
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
742
742
|
},
|
|
743
743
|
m(_, R) {
|
|
744
|
-
|
|
744
|
+
I(_, e, R), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), Se(
|
|
745
745
|
s,
|
|
746
746
|
/*searchValue*/
|
|
747
747
|
a[14]
|
|
@@ -797,17 +797,17 @@ function Ft(a) {
|
|
|
797
797
|
1024 && A !== (A = /*cancelbutton*/
|
|
798
798
|
_[10] != "true" ? "OverlayCancel" : "") && p(z, "class", A), J === (J = V(_)) && j ? j.p(_, R) : (j.d(1), j = J(_), j && (j.c(), j.m(e, null)));
|
|
799
799
|
},
|
|
800
|
-
i:
|
|
801
|
-
o:
|
|
800
|
+
i: _e,
|
|
801
|
+
o: _e,
|
|
802
802
|
d(_) {
|
|
803
|
-
_ &&
|
|
803
|
+
_ && E(e), a[39](null), F && F.d(), j.d(), a[42](null), U = !1, st(B);
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
806
|
}
|
|
807
807
|
let Ge = 50;
|
|
808
808
|
function Lt(a, e, t) {
|
|
809
809
|
let r;
|
|
810
|
-
lt(a,
|
|
810
|
+
lt(a, pt, (n) => t(21, r = n));
|
|
811
811
|
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: d } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: v = "false" } = e, { integratedgameframemobile: T = "false" } = e, { showgamename: g = "" } = e, { gamepagemodalurl: S = "true" } = e, { translationurl: z = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: U = "false" } = e, { controlchannel: B = "casino-search" } = e, { allowedorigins: F = window.location.origin } = e, { requiredicon: V = "false" } = e;
|
|
812
812
|
const J = () => (F || "").split(",").map((n) => n.trim()).filter(Boolean);
|
|
813
813
|
let j = window.navigator.userAgent, _ = [], R = [], ne = {}, P = "", K, $ = !0, q = !1, D = !1, M, ze, ee = !1, te, ae, ce = [];
|
|
@@ -930,7 +930,7 @@ function Lt(a, e, t) {
|
|
|
930
930
|
const L = new Date(Date.now());
|
|
931
931
|
return n.forEach((G, O) => {
|
|
932
932
|
const Xe = new Date(G.schedules[0].startTime), le = new Date(G.schedules[0].endTime);
|
|
933
|
-
we(new Date(le), new Date(L)) < b && (b = we(new Date(le), new Date(L)), y = O),
|
|
933
|
+
we(new Date(le), new Date(L)) < b && (b = we(new Date(le), new Date(L)), y = O), ht(new Date(L), new Date(Xe)) && dt(new Date(L), new Date(le)) && (f = n[y].name);
|
|
934
934
|
}), f;
|
|
935
935
|
}, We = (n) => {
|
|
936
936
|
if (R = localStorage.getItem("searchedGamesWds_casino"), R ? R = R.split(",") : R = [], R.indexOf(n) === -1) {
|
|
@@ -1003,11 +1003,11 @@ function Lt(a, e, t) {
|
|
|
1003
1003
|
3 && s && i && xe(), a.$$.dirty[0] & /*showfavorites*/
|
|
1004
1004
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
1005
1005
|
64 && A && ee && Oe(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1006
|
-
4104 && h && M &&
|
|
1007
|
-
4112 && m && M &&
|
|
1008
|
-
4100 && d && M &&
|
|
1006
|
+
4104 && h && M && mt(M, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1007
|
+
4112 && m && M && gt(M, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1008
|
+
4100 && d && M && ct(M, `${d}.Style`), a.$$.dirty[0] & /*mbsource*/
|
|
1009
1009
|
4 | a.$$.dirty[1] & /*translationurl*/
|
|
1010
|
-
4 && d && !z &&
|
|
1010
|
+
4 && d && !z && ut(`${d}.Translation`, ze, re);
|
|
1011
1011
|
}, [
|
|
1012
1012
|
o,
|
|
1013
1013
|
c,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ae=Object.defineProperty;var se=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var oe=(n,t,a)=>t in n?Ae(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,le=(n,t)=>{for(var a in t||(t={}))Be.call(t,a)&&oe(n,a,t[a]);if(se)for(var a of se(t))Oe.call(t,a)&&oe(n,a,t[a]);return n};var ie=(n,t,a)=>new Promise((s,o)=>{var i=u=>{try{c(a.next(u))}catch(d){o(d)}},l=u=>{try{c(a.throw(u))}catch(d){o(d)}},c=u=>u.done?s(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-DMpN2Rsr.cjs");function He(n,t){e.addMessages(n,t)}function We(n){e.$locale.set(n)}const Ue={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."}},Ve=(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(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-DMpN2Rsr.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Je(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 ce(n,t,a){const s=n.slice();return s[67]=t[a],s}function ue(n){let t,a=n[21]("cancel")+"",s,o,i,l;return{c(){t=e.element("small"),s=e.text(a),e.attr(t,"class",o="SearchCancelButton "+(n[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,s),i||(l=e.listen(t,"click",n[41]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(s,a),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ze(n){let t,a,s,o;function i(h,f){if(h[17]==!0&&h[14].length<2)return Qe;if(h[13].length!=0)return Ke}let l=i(n),c=l&&l(n),u=n[16]===!1&&fe(n),d=n[14].length>=2&&n[13].length==0&&pe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),s=e.space(),d&&d.c(),e.attr(a,"class",o="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,s),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[16]===!1?u?u.p(h,f):(u=fe(h),u.c(),u.m(a,s)):u&&(u.d(1),u=null),h[14].length>=2&&h[13].length==0?d?d.p(h,f):(d=pe(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",o)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Ye(n){let t,a=n[21]("loading")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("loading")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function Ke(n){let t,a=n[21]("searchResult")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("searchResult")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function Qe(n){let t,a,s=n[13].length!==0&&de(n),o=n[13].length==0&&he(n);return{c(){s&&s.c(),t=e.space(),o&&o.c(),a=e.empty()},m(i,l){s&&s.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,a,l)},p(i,l){i[13].length!==0?s?s.p(i,l):(s=de(i),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),i[13].length==0?o?o.p(i,l):(o=he(i),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(a)),s&&s.d(i),o&&o.d(i)}}}function de(n){let t,a=n[21]("recentSearch")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("recentSearch")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function he(n){let t,a,s,o=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&me();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),s=e.element("p"),i=e.text(o),e.attr(s,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,s),e.append(s,i)},p(u,d){u[11]==="true"?c||(c=me(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),d[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function me(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,s){e.insert(a,t,s)},d(a){a&&e.detach(t)}}}function fe(n){let t,a=e.ensure_array_like(n[13]),s=[];for(let o=0;o<a.length;o+=1)s[o]=ge(ce(n,a,o));return{c(){for(let o=0;o<s.length;o+=1)s[o].c();t=e.empty()},m(o,i){for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&77079551){a=e.ensure_array_like(o[13]);let l;for(l=0;l<a.length;l+=1){const c=ce(o,a,l);s[l]?s[l].p(c,i):(s[l]=ge(c),s[l].c(),s[l].m(t.parentNode,t))}for(;l<s.length;l+=1)s[l].d(1);s.length=a.length}},d(o){o&&e.detach(t),e.destroy_each(s,o)}}}function ge(n){let t,a,s,o,i,l,c,u,d,h,f,b,R;return{c(){var m,p;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[67].thumbnail),e.set_custom_element_data(t,"icon",s=n[23]((m=n[67])==null?void 0:m.icons)),e.set_custom_element_data(t,"gamename",o=n[67].name),e.set_custom_element_data(t,"gamevendor",i=n[67].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",l=n[67].launchUrl),e.set_custom_element_data(t,"gameisnew",c=n[67].isNew),e.set_custom_element_data(t,"gametag",u=((p=n[67].advancedTags)==null?void 0:p.length)>0&&n[26](n[67].advancedTags)),e.set_custom_element_data(t,"gamecellsize",d=n[67].cellSize),e.set_custom_element_data(t,"gameid",h=n[67].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",f=n[67].hasFunMode),e.set_custom_element_data(t,"gamefavorite",b=n[67].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",R=n[67].details?n[67].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(m,p){e.insert(m,t,p)},p(m,p){var C,T;p[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),p[0]&524288&&e.set_custom_element_data(t,"session",m[19]),p[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),p[0]&512&&e.set_custom_element_data(t,"favorites",m[9]),p[0]&2&&e.set_custom_element_data(t,"lang",m[1]),p[0]&8192&&a!==(a=m[67].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&8192&&s!==(s=m[23]((C=m[67])==null?void 0:C.icons))&&e.set_custom_element_data(t,"icon",s),p[0]&8192&&o!==(o=m[67].name)&&e.set_custom_element_data(t,"gamename",o),p[0]&8192&&i!==(i=m[67].vendor.name)&&e.set_custom_element_data(t,"gamevendor",i),p[0]&8192&&l!==(l=m[67].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",l),p[0]&8192&&c!==(c=m[67].isNew)&&e.set_custom_element_data(t,"gameisnew",c),p[0]&8192&&u!==(u=((T=m[67].advancedTags)==null?void 0:T.length)>0&&m[26](m[67].advancedTags))&&e.set_custom_element_data(t,"gametag",u),p[0]&8192&&d!==(d=m[67].cellSize)&&e.set_custom_element_data(t,"gamecellsize",d),p[0]&8192&&h!==(h=m[67].id)&&e.set_custom_element_data(t,"gameid",h),p[0]&128&&e.set_custom_element_data(t,"showgamename",m[7]),p[0]&8192&&f!==(f=m[67].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",f),p[0]&8192&&b!==(b=m[67].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",b),p[0]&8192&&R!==(R=m[67].details?m[67].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",R),p[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",m[5]),p[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",m[6]),p[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3]),p[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),p[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",m[8]),p[0]&4&&e.set_custom_element_data(t,"mbsource",m[2])},d(m){m&&e.detach(t)}}}function pe(n){let t,a,s,o=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[11]==="true"&&_e();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),s=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(s,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(b,R){e.insert(b,t,R),f&&f.m(t,null),e.append(t,a),e.append(t,s),e.append(s,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(b,R){b[11]==="true"?f||(f=_e(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),R[0]&2097152&&o!==(o=b[21]("notFound")+"")&&e.set_data(i,o),R[0]&2097152&&u!==(u=b[21]("notFoundText")+"")&&e.set_data(d,u),R[0]&2048&&h!==(h="ResultsContainerError "+(b[11]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(b){b&&e.detach(t),f&&f.d()}}}function _e(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,s){e.insert(a,t,s)},d(a){a&&e.detach(t)}}}function Xe(n){let t,a,s,o,i,l,c,u,d,h,f,b,R,m,p,C,T,P,M,z,k=n[10]==="true"&&ue(n);function x(_,y){return _[18]?Ye:Ze}let q=x(n),F=q(n);return{c(){t=e.element("div"),a=e.element("div"),s=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#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(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),R=e.space(),k&&k.c(),p=e.space(),C=e.element("div"),P=e.space(),F.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Se),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(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",b="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[14].length!=0?"":"NotVisible")),e.attr(s,"class",m="Search "+(n[16]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(C,"class",T=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,y){e.insert(_,t,y),e.append(t,a),e.append(a,s),e.append(s,o),e.append(s,i),e.append(s,l),e.set_input_value(l,n[14]),n[39](l),e.append(s,u),e.append(s,d),e.append(d,h),e.append(h,f),e.append(s,R),k&&k.m(s,null),e.append(t,p),e.append(t,C),e.append(t,P),F.m(t,null),n[42](t),M||(z=[e.listen(l,"input",n[38]),e.listen(l,"focus",n[24]),e.listen(l,"input",n[29]),e.listen(d,"click",n[40]),e.listen(C,"click",n[25])],M=!0)},p(_,y){y[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),y[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),y[0]&17408&&b!==(b="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(d,"class",b),_[10]==="true"?k?k.p(_,y):(k=ue(_),k.c(),k.m(s,null)):k&&(k.d(1),k=null),y[0]&65536&&m!==(m="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(s,"class",m),y[0]&1024&&T!==(T=_[10]!="true"?"OverlayCancel":"")&&e.attr(C,"class",T),q===(q=x(_))&&F?F.p(_,y):(F.d(1),F=q(_),F&&(F.c(),F.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[39](null),k&&k.d(),F.d(),n[42](null),M=!1,e.run_all(z)}}}let Se=50;function $e(n,t,a){let s;e.component_subscribe(n,e.$format,r=>a(21,s=r));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{integratedgameframedesktop:b="false"}=t,{integratedgameframemobile:R="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:C=""}=t,{showfavorites:T=""}=t,{cancelbutton:P="true"}=t,{notfoundicon:M="false"}=t,{controlchannel:z="casino-search"}=t,{allowedorigins:k=window.location.origin}=t,{requiredicon:x="false"}=t;const q=()=>(k||"").split(",").map(r=>r.trim()).filter(Boolean);let F=window.navigator.userAgent,_=[],y=[],J={},E="",N,H=!0,G=!1,I=!1,j,be,W=!1,U,V,X=[];const Z=r=>{Object.keys(r).forEach(g=>{He(g,r[g])})},ve=()=>{fetch(C).then(g=>g.json()).then(g=>{Z(g)}).catch(g=>{console.log(g)})};Z(Ue);const $=r=>{var g;r.data&&r.data.type=="SearchedItemClicked"&&Ge(r.data.gameId),r.data.type=="UserSessionID"&&(a(19,U=r.data.session),a(20,V=r.data.userid),a(37,W=!0)),r.data.type=="CategoryChange"&&O();try{const S=r.origin===window.location.origin,w=q();if(!(S||w.length>0&&w.includes(r.origin))||!r.data||r.data.channel!==z)return;switch(r.data.type){case"OpenSearch":K();break;case"CloseSearch":ee();break;case"ToggleSearch":ke();break;case"SetSearchQuery":Re(String((g=r.data.value)!=null?g:""));break}}catch(S){}},ye=r=>x!=="true"?void 0:Object.values(r!=null?r:{}).pop(),Y=()=>{if(a(16,H=!1),a(17,G=!0),o&&i&&u&&E.length<2){a(13,_=[]);let r=localStorage.getItem("searchedGamesWds_casino"),g=[];r&&(g=r.split(","));let S=[],w=0,v=g.length;if(v>0){for(w=0;w<v;w++){let L=new URL(`${o}/v1/casino/games/${g[w]}`);L.searchParams.append("language",u),L.searchParams.append("datasource",i),L.searchParams.append("platform",e.getDevice(F)),S.push(Le(L,g[w]))}Promise.all(S).then(L=>{L=L.filter(function(D){return!!D}),a(13,_=L.map(D=>(D.isFavorite=te(D.id),D))),_.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(L=>{B("searchError","SearchWidget")})}}ne(G),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")};function K(){G||(Y(),requestAnimationFrame(()=>N==null?void 0:N.focus()),A({type:"SearchOpen"}))}function ee(){G&&(O(),A({type:"SearchClose"}))}function ke(){G?ee():K()}function Re(r){a(14,E=(r!=null?r:"").slice(0,Se)),G||K(),re()}const B=(r,g)=>{typeof gtag=="function"&>ag("event",r,{context:g})},Ce=()=>{P!="true"&&O()},Fe=r=>new Promise((g,S)=>{a(18,I=!0),fetch(r.href).then(w=>w.json()).then(w=>{a(18,I=!1),g(w)}).catch(w=>{a(18,I=!1),console.error(w);try{A({type:"SearchError",message:String(w)})}catch(v){}S(w)})}),Le=(r,g)=>new Promise((S,w)=>{a(18,I=!0),g&&Object.keys(J).indexOf(g)>=0?(a(18,I=!1),S(J[g])):fetch(r).then(v=>v.json()).then(v=>{a(18,I=!1),v.error||(J[v[0].gameId]=v[0]),S(v[0])}).catch(v=>{a(18,I=!1),console.error(v);try{A({type:"SearchError",message:String(v)})}catch(L){}w(v)})}),Te=()=>{const r=new URL(`${o}/v1/player/${V}/favorites/`);a(18,I=!0);let g={method:"GET",headers:{"X-SessionID":U}};fetch(r.href,g).then(S=>S.json()).then(S=>{a(18,I=!1),X=S.items.map(w=>w.id)})},Ie=()=>{a(37,W=!0),a(19,U=l),a(20,V=c)},te=r=>X.findIndex(g=>g==r)!==-1,Ee=r=>{if((r==null?void 0:r.length)===0)return"";let g,S=99999999999,w;const v=new Date(Date.now());return r.forEach((L,D)=>{const qe=new Date(L.schedules[0].startTime),Q=new Date(L.schedules[0].endTime);e.differenceInMilliseconds(new Date(Q),new Date(v))<S&&(S=e.differenceInMilliseconds(new Date(Q),new Date(v)),w=D),e.isAfter(new Date(v),new Date(qe))&&e.isBefore(new Date(v),new Date(Q))&&(g=r[w].name)}),g},Ge=r=>{if(y=localStorage.getItem("searchedGamesWds_casino"),y?y=y.split(","):y=[],y.indexOf(r)===-1){let g;y.unshift(r),g=y.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},O=()=>{a(14,E=""),a(16,H=!0),a(18,I=!1),a(13,_=[]),a(17,G=!1),ne(G)},ae=()=>{a(14,E=""),N.focus()},ne=r=>{window.postMessage({type:r===!0?"searchActive":"searchCancelled",searchStatus:r},window.location.href),A({type:r?"SearchOpen":"SearchClose"})};function A(r){try{const g=le({channel:z},r);window.postMessage(g,window.location.href)}catch(g){}}const je=()=>{We(u)},re=()=>ie(this,null,function*(){if(E.length>=2){const r=new URL(`${o}/v1/casino/games`);r.searchParams.append("datasource",i),r.searchParams.append("expand","vendor"),r.searchParams.append("platform",e.getDevice(F)),r.searchParams.append("language",u),r.searchParams.append("pagination","offset=0,limit=30"),r.searchParams.append("filter",`name=${E}`),Fe(r).then(g=>{a(13,_=g.items.map(S=>(S.isFavorite=te(S.id),S)));try{A({type:"SearchResults",count:_.length})}catch(S){}})}else H||Y()}),ze=Ve(re,500);e.onMount(()=>(window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$)}));function Ne(){E=this.value,a(14,E)}function De(r){e.binding_callbacks[r?"unshift":"push"](()=>{N=r,a(15,N)})}const Pe=()=>ae(),Me=()=>O();function xe(r){e.binding_callbacks[r?"unshift":"push"](()=>{j=r,a(12,j)})}return n.$$set=r=>{"endpoint"in r&&a(0,o=r.endpoint),"datasource"in r&&a(30,i=r.datasource),"session"in r&&a(31,l=r.session),"userid"in r&&a(32,c=r.userid),"lang"in r&&a(1,u=r.lang),"mbsource"in r&&a(2,d=r.mbsource),"clientstyling"in r&&a(3,h=r.clientstyling),"clientstylingurl"in r&&a(4,f=r.clientstylingurl),"integratedgameframedesktop"in r&&a(5,b=r.integratedgameframedesktop),"integratedgameframemobile"in r&&a(6,R=r.integratedgameframemobile),"showgamename"in r&&a(7,m=r.showgamename),"gamepagemodalurl"in r&&a(8,p=r.gamepagemodalurl),"translationurl"in r&&a(33,C=r.translationurl),"showfavorites"in r&&a(9,T=r.showfavorites),"cancelbutton"in r&&a(10,P=r.cancelbutton),"notfoundicon"in r&&a(11,M=r.notfoundicon),"controlchannel"in r&&a(34,z=r.controlchannel),"allowedorigins"in r&&a(35,k=r.allowedorigins),"requiredicon"in r&&a(36,x=r.requiredicon)},n.$$.update=()=>{n.$$.dirty[0]&2&&u&&je(),n.$$.dirty[1]&4&&C&&ve(),n.$$.dirty[1]&3&&l&&c&&Ie(),n.$$.dirty[0]&512|n.$$.dirty[1]&64&&T&&W&&Te(),n.$$.dirty[0]&4104&&h&&j&&e.setClientStyling(j,h),n.$$.dirty[0]&4112&&f&&j&&e.setClientStylingURL(j,f),n.$$.dirty[0]&4100&&d&&j&&e.setStreamStyling(j,`${d}.Style`),n.$$.dirty[0]&4|n.$$.dirty[1]&4&&d&&!C&&e.getStreamTranslations(`${d}.Translation`,be,Z)},[o,u,d,h,f,b,R,m,p,T,P,M,j,_,E,N,H,G,I,U,V,s,F,ye,Y,Ce,Ee,O,ae,ze,i,l,c,C,z,k,x,W,Ne,De,Pe,Me,xe]}class we extends e.SvelteComponent{constructor(t){super(),e.init(this,t,$e,Xe,e.safe_not_equal,{endpoint:0,datasource:30,session:31,userid:32,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:33,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:34,allowedorigins:35,requiredicon:36},Je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[30]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[31]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[32]}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[33]}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()}get controlchannel(){return this.$$.ctx[34]}set controlchannel(t){this.$$set({controlchannel:t}),e.flush()}get allowedorigins(){return this.$$.ctx[35]}set allowedorigins(t){this.$$set({allowedorigins:t}),e.flush()}get requiredicon(){return this.$$.ctx[36]}set requiredicon(t){this.$$set({requiredicon:t}),e.flush()}}e.create_custom_element(we,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{}},[],[],!0);exports.default=we;
|
|
1
|
+
"use strict";var Ae=Object.defineProperty;var se=Object.getOwnPropertySymbols;var Be=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable;var oe=(n,t,a)=>t in n?Ae(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,le=(n,t)=>{for(var a in t||(t={}))Be.call(t,a)&&oe(n,a,t[a]);if(se)for(var a of se(t))Oe.call(t,a)&&oe(n,a,t[a]);return n};var ie=(n,t,a)=>new Promise((s,o)=>{var i=u=>{try{c(a.next(u))}catch(d){o(d)}},l=u=>{try{c(a.throw(u))}catch(d){o(d)}},c=u=>u.done?s(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-sr9Uj-v7.cjs");function He(n,t){e.addMessages(n,t)}function We(n){e.$locale.set(n)}const Ue={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."}},Ve=(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(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-sr9Uj-v7.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Je(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 ce(n,t,a){const s=n.slice();return s[67]=t[a],s}function ue(n){let t,a=n[21]("cancel")+"",s,o,i,l;return{c(){t=e.element("small"),s=e.text(a),e.attr(t,"class",o="SearchCancelButton "+(n[16]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,s),i||(l=e.listen(t,"click",n[41]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(s,a),u[0]&65536&&o!==(o="SearchCancelButton "+(c[16]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Ze(n){let t,a,s,o;function i(h,f){if(h[17]==!0&&h[14].length<2)return Qe;if(h[13].length!=0)return Ke}let l=i(n),c=l&&l(n),u=n[16]===!1&&fe(n),d=n[14].length>=2&&n[13].length==0&&pe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),s=e.space(),d&&d.c(),e.attr(a,"class",o="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(h,f){c&&c.m(h,f),e.insert(h,t,f),e.insert(h,a,f),u&&u.m(a,null),e.append(a,s),d&&d.m(a,null)},p(h,f){l===(l=i(h))&&c?c.p(h,f):(c&&c.d(1),c=l&&l(h),c&&(c.c(),c.m(t.parentNode,t))),h[16]===!1?u?u.p(h,f):(u=fe(h),u.c(),u.m(a,s)):u&&(u.d(1),u=null),h[14].length>=2&&h[13].length==0?d?d.p(h,f):(d=pe(h),d.c(),d.m(a,null)):d&&(d.d(1),d=null),f[0]&131072&&o!==(o="SearchResultsContainer "+(h[17]==!0?"":"NotVisible"))&&e.attr(a,"class",o)},d(h){h&&(e.detach(t),e.detach(a)),c&&c.d(h),u&&u.d(),d&&d.d()}}}function Ye(n){let t,a=n[21]("loading")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("loading")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function Ke(n){let t,a=n[21]("searchResult")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("searchResult")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function Qe(n){let t,a,s=n[13].length!==0&&de(n),o=n[13].length==0&&he(n);return{c(){s&&s.c(),t=e.space(),o&&o.c(),a=e.empty()},m(i,l){s&&s.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,a,l)},p(i,l){i[13].length!==0?s?s.p(i,l):(s=de(i),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),i[13].length==0?o?o.p(i,l):(o=he(i),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(a)),s&&s.d(i),o&&o.d(i)}}}function de(n){let t,a=n[21]("recentSearch")+"",s;return{c(){t=e.element("p"),s=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,s)},p(o,i){i[0]&2097152&&a!==(a=o[21]("recentSearch")+"")&&e.set_data(s,a)},d(o){o&&e.detach(t)}}}function he(n){let t,a,s,o=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&me();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),s=e.element("p"),i=e.text(o),e.attr(s,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,d){e.insert(u,t,d),c&&c.m(t,null),e.append(t,a),e.append(t,s),e.append(s,i)},p(u,d){u[11]==="true"?c||(c=me(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),d[0]&2097152&&o!==(o=u[21]("noRecentSearches")+"")&&e.set_data(i,o),d[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function me(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,s){e.insert(a,t,s)},d(a){a&&e.detach(t)}}}function fe(n){let t,a=e.ensure_array_like(n[13]),s=[];for(let o=0;o<a.length;o+=1)s[o]=ge(ce(n,a,o));return{c(){for(let o=0;o<s.length;o+=1)s[o].c();t=e.empty()},m(o,i){for(let l=0;l<s.length;l+=1)s[l]&&s[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&77079551){a=e.ensure_array_like(o[13]);let l;for(l=0;l<a.length;l+=1){const c=ce(o,a,l);s[l]?s[l].p(c,i):(s[l]=ge(c),s[l].c(),s[l].m(t.parentNode,t))}for(;l<s.length;l+=1)s[l].d(1);s.length=a.length}},d(o){o&&e.detach(t),e.destroy_each(s,o)}}}function ge(n){let t,a,s,o,i,l,c,u,d,h,f,b,R;return{c(){var m,p;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[67].thumbnail),e.set_custom_element_data(t,"icon",s=n[23]((m=n[67])==null?void 0:m.icons)),e.set_custom_element_data(t,"gamename",o=n[67].name),e.set_custom_element_data(t,"gamevendor",i=n[67].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",l=n[67].launchUrl),e.set_custom_element_data(t,"gameisnew",c=n[67].isNew),e.set_custom_element_data(t,"gametag",u=((p=n[67].advancedTags)==null?void 0:p.length)>0&&n[26](n[67].advancedTags)),e.set_custom_element_data(t,"gamecellsize",d=n[67].cellSize),e.set_custom_element_data(t,"gameid",h=n[67].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",f=n[67].hasFunMode),e.set_custom_element_data(t,"gamefavorite",b=n[67].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",R=n[67].details?n[67].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(m,p){e.insert(m,t,p)},p(m,p){var C,T;p[0]&1&&e.set_custom_element_data(t,"endpoint",m[0]),p[0]&524288&&e.set_custom_element_data(t,"session",m[19]),p[0]&1048576&&e.set_custom_element_data(t,"userid",m[20]),p[0]&512&&e.set_custom_element_data(t,"favorites",m[9]),p[0]&2&&e.set_custom_element_data(t,"lang",m[1]),p[0]&8192&&a!==(a=m[67].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&8192&&s!==(s=m[23]((C=m[67])==null?void 0:C.icons))&&e.set_custom_element_data(t,"icon",s),p[0]&8192&&o!==(o=m[67].name)&&e.set_custom_element_data(t,"gamename",o),p[0]&8192&&i!==(i=m[67].vendor.name)&&e.set_custom_element_data(t,"gamevendor",i),p[0]&8192&&l!==(l=m[67].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",l),p[0]&8192&&c!==(c=m[67].isNew)&&e.set_custom_element_data(t,"gameisnew",c),p[0]&8192&&u!==(u=((T=m[67].advancedTags)==null?void 0:T.length)>0&&m[26](m[67].advancedTags))&&e.set_custom_element_data(t,"gametag",u),p[0]&8192&&d!==(d=m[67].cellSize)&&e.set_custom_element_data(t,"gamecellsize",d),p[0]&8192&&h!==(h=m[67].id)&&e.set_custom_element_data(t,"gameid",h),p[0]&128&&e.set_custom_element_data(t,"showgamename",m[7]),p[0]&8192&&f!==(f=m[67].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",f),p[0]&8192&&b!==(b=m[67].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",b),p[0]&8192&&R!==(R=m[67].details?m[67].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",R),p[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",m[5]),p[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",m[6]),p[0]&8&&e.set_custom_element_data(t,"clientstyling",m[3]),p[0]&16&&e.set_custom_element_data(t,"clientstylingurl",m[4]),p[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",m[8]),p[0]&4&&e.set_custom_element_data(t,"mbsource",m[2])},d(m){m&&e.detach(t)}}}function pe(n){let t,a,s,o=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",d,h,f=n[11]==="true"&&_e();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),s=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),d=e.text(u),e.attr(s,"class","SearchMessage"),e.attr(t,"class",h="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(b,R){e.insert(b,t,R),f&&f.m(t,null),e.append(t,a),e.append(t,s),e.append(s,i),e.append(t,l),e.append(t,c),e.append(c,d)},p(b,R){b[11]==="true"?f||(f=_e(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),R[0]&2097152&&o!==(o=b[21]("notFound")+"")&&e.set_data(i,o),R[0]&2097152&&u!==(u=b[21]("notFoundText")+"")&&e.set_data(d,u),R[0]&2048&&h!==(h="ResultsContainerError "+(b[11]=="true"?"WithIcon":""))&&e.attr(t,"class",h)},d(b){b&&e.detach(t),f&&f.d()}}}function _e(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,s){e.insert(a,t,s)},d(a){a&&e.detach(t)}}}function Xe(n){let t,a,s,o,i,l,c,u,d,h,f,b,R,m,p,C,T,P,M,z,k=n[10]==="true"&&ue(n);function x(_,y){return _[18]?Ye:Ze}let q=x(n),F=q(n);return{c(){t=e.element("div"),a=e.element("div"),s=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#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(),d=e.element("span"),h=e.svg_element("svg"),f=e.svg_element("path"),R=e.space(),k&&k.c(),p=e.space(),C=e.element("div"),P=e.space(),F.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Se),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(h,"width","11"),e.attr(h,"height","11"),e.attr(h,"fill","none"),e.attr(h,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"class",b="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[14].length!=0?"":"NotVisible")),e.attr(s,"class",m="Search "+(n[16]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(C,"class",T=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,y){e.insert(_,t,y),e.append(t,a),e.append(a,s),e.append(s,o),e.append(s,i),e.append(s,l),e.set_input_value(l,n[14]),n[39](l),e.append(s,u),e.append(s,d),e.append(d,h),e.append(h,f),e.append(s,R),k&&k.m(s,null),e.append(t,p),e.append(t,C),e.append(t,P),F.m(t,null),n[42](t),M||(z=[e.listen(l,"input",n[38]),e.listen(l,"focus",n[24]),e.listen(l,"input",n[29]),e.listen(d,"click",n[40]),e.listen(C,"click",n[25])],M=!0)},p(_,y){y[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),y[0]&16384&&l.value!==_[14]&&e.set_input_value(l,_[14]),y[0]&17408&&b!==(b="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[14].length!=0?"":"NotVisible"))&&e.attr(d,"class",b),_[10]==="true"?k?k.p(_,y):(k=ue(_),k.c(),k.m(s,null)):k&&(k.d(1),k=null),y[0]&65536&&m!==(m="Search "+(_[16]?"":"SearchAnimation"))&&e.attr(s,"class",m),y[0]&1024&&T!==(T=_[10]!="true"?"OverlayCancel":"")&&e.attr(C,"class",T),q===(q=x(_))&&F?F.p(_,y):(F.d(1),F=q(_),F&&(F.c(),F.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[39](null),k&&k.d(),F.d(),n[42](null),M=!1,e.run_all(z)}}}let Se=50;function $e(n,t,a){let s;e.component_subscribe(n,e.$format,r=>a(21,s=r));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:d}=t,{clientstyling:h=""}=t,{clientstylingurl:f=""}=t,{integratedgameframedesktop:b="false"}=t,{integratedgameframemobile:R="false"}=t,{showgamename:m=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:C=""}=t,{showfavorites:T=""}=t,{cancelbutton:P="true"}=t,{notfoundicon:M="false"}=t,{controlchannel:z="casino-search"}=t,{allowedorigins:k=window.location.origin}=t,{requiredicon:x="false"}=t;const q=()=>(k||"").split(",").map(r=>r.trim()).filter(Boolean);let F=window.navigator.userAgent,_=[],y=[],J={},E="",N,H=!0,G=!1,I=!1,j,be,W=!1,U,V,X=[];const Z=r=>{Object.keys(r).forEach(g=>{He(g,r[g])})},ve=()=>{fetch(C).then(g=>g.json()).then(g=>{Z(g)}).catch(g=>{console.log(g)})};Z(Ue);const $=r=>{var g;r.data&&r.data.type=="SearchedItemClicked"&&Ge(r.data.gameId),r.data.type=="UserSessionID"&&(a(19,U=r.data.session),a(20,V=r.data.userid),a(37,W=!0)),r.data.type=="CategoryChange"&&O();try{const S=r.origin===window.location.origin,w=q();if(!(S||w.length>0&&w.includes(r.origin))||!r.data||r.data.channel!==z)return;switch(r.data.type){case"OpenSearch":K();break;case"CloseSearch":ee();break;case"ToggleSearch":ke();break;case"SetSearchQuery":Re(String((g=r.data.value)!=null?g:""));break}}catch(S){}},ye=r=>x!=="true"?void 0:Object.values(r!=null?r:{}).pop(),Y=()=>{if(a(16,H=!1),a(17,G=!0),o&&i&&u&&E.length<2){a(13,_=[]);let r=localStorage.getItem("searchedGamesWds_casino"),g=[];r&&(g=r.split(","));let S=[],w=0,v=g.length;if(v>0){for(w=0;w<v;w++){let L=new URL(`${o}/v1/casino/games/${g[w]}`);L.searchParams.append("language",u),L.searchParams.append("datasource",i),L.searchParams.append("platform",e.getDevice(F)),S.push(Le(L,g[w]))}Promise.all(S).then(L=>{L=L.filter(function(D){return!!D}),a(13,_=L.map(D=>(D.isFavorite=te(D.id),D))),_.length?B("searchSuccess","SearchWidget"):B("searchFail","SearchWidget")}).catch(L=>{B("searchError","SearchWidget")})}}ne(G),B("searchAttempt","SearchWidget"),B("SearchInitialized","SearchWidget")};function K(){G||(Y(),requestAnimationFrame(()=>N==null?void 0:N.focus()),A({type:"SearchOpen"}))}function ee(){G&&(O(),A({type:"SearchClose"}))}function ke(){G?ee():K()}function Re(r){a(14,E=(r!=null?r:"").slice(0,Se)),G||K(),re()}const B=(r,g)=>{typeof gtag=="function"&>ag("event",r,{context:g})},Ce=()=>{P!="true"&&O()},Fe=r=>new Promise((g,S)=>{a(18,I=!0),fetch(r.href).then(w=>w.json()).then(w=>{a(18,I=!1),g(w)}).catch(w=>{a(18,I=!1),console.error(w);try{A({type:"SearchError",message:String(w)})}catch(v){}S(w)})}),Le=(r,g)=>new Promise((S,w)=>{a(18,I=!0),g&&Object.keys(J).indexOf(g)>=0?(a(18,I=!1),S(J[g])):fetch(r).then(v=>v.json()).then(v=>{a(18,I=!1),v.error||(J[v[0].gameId]=v[0]),S(v[0])}).catch(v=>{a(18,I=!1),console.error(v);try{A({type:"SearchError",message:String(v)})}catch(L){}w(v)})}),Te=()=>{const r=new URL(`${o}/v1/player/${V}/favorites/`);a(18,I=!0);let g={method:"GET",headers:{"X-SessionID":U}};fetch(r.href,g).then(S=>S.json()).then(S=>{a(18,I=!1),X=S.items.map(w=>w.id)})},Ie=()=>{a(37,W=!0),a(19,U=l),a(20,V=c)},te=r=>X.findIndex(g=>g==r)!==-1,Ee=r=>{if((r==null?void 0:r.length)===0)return"";let g,S=99999999999,w;const v=new Date(Date.now());return r.forEach((L,D)=>{const qe=new Date(L.schedules[0].startTime),Q=new Date(L.schedules[0].endTime);e.differenceInMilliseconds(new Date(Q),new Date(v))<S&&(S=e.differenceInMilliseconds(new Date(Q),new Date(v)),w=D),e.isAfter(new Date(v),new Date(qe))&&e.isBefore(new Date(v),new Date(Q))&&(g=r[w].name)}),g},Ge=r=>{if(y=localStorage.getItem("searchedGamesWds_casino"),y?y=y.split(","):y=[],y.indexOf(r)===-1){let g;y.unshift(r),g=y.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},O=()=>{a(14,E=""),a(16,H=!0),a(18,I=!1),a(13,_=[]),a(17,G=!1),ne(G)},ae=()=>{a(14,E=""),N.focus()},ne=r=>{window.postMessage({type:r===!0?"searchActive":"searchCancelled",searchStatus:r},window.location.href),A({type:r?"SearchOpen":"SearchClose"})};function A(r){try{const g=le({channel:z},r);window.postMessage(g,window.location.href)}catch(g){}}const je=()=>{We(u)},re=()=>ie(this,null,function*(){if(E.length>=2){const r=new URL(`${o}/v1/casino/games`);r.searchParams.append("datasource",i),r.searchParams.append("expand","vendor"),r.searchParams.append("platform",e.getDevice(F)),r.searchParams.append("language",u),r.searchParams.append("pagination","offset=0,limit=30"),r.searchParams.append("filter",`name=${E}`),Fe(r).then(g=>{a(13,_=g.items.map(S=>(S.isFavorite=te(S.id),S)));try{A({type:"SearchResults",count:_.length})}catch(S){}})}else H||Y()}),ze=Ve(re,500);e.onMount(()=>(window.addEventListener("message",$,!1),()=>{window.removeEventListener("message",$)}));function Ne(){E=this.value,a(14,E)}function De(r){e.binding_callbacks[r?"unshift":"push"](()=>{N=r,a(15,N)})}const Pe=()=>ae(),Me=()=>O();function xe(r){e.binding_callbacks[r?"unshift":"push"](()=>{j=r,a(12,j)})}return n.$$set=r=>{"endpoint"in r&&a(0,o=r.endpoint),"datasource"in r&&a(30,i=r.datasource),"session"in r&&a(31,l=r.session),"userid"in r&&a(32,c=r.userid),"lang"in r&&a(1,u=r.lang),"mbsource"in r&&a(2,d=r.mbsource),"clientstyling"in r&&a(3,h=r.clientstyling),"clientstylingurl"in r&&a(4,f=r.clientstylingurl),"integratedgameframedesktop"in r&&a(5,b=r.integratedgameframedesktop),"integratedgameframemobile"in r&&a(6,R=r.integratedgameframemobile),"showgamename"in r&&a(7,m=r.showgamename),"gamepagemodalurl"in r&&a(8,p=r.gamepagemodalurl),"translationurl"in r&&a(33,C=r.translationurl),"showfavorites"in r&&a(9,T=r.showfavorites),"cancelbutton"in r&&a(10,P=r.cancelbutton),"notfoundicon"in r&&a(11,M=r.notfoundicon),"controlchannel"in r&&a(34,z=r.controlchannel),"allowedorigins"in r&&a(35,k=r.allowedorigins),"requiredicon"in r&&a(36,x=r.requiredicon)},n.$$.update=()=>{n.$$.dirty[0]&2&&u&&je(),n.$$.dirty[1]&4&&C&&ve(),n.$$.dirty[1]&3&&l&&c&&Ie(),n.$$.dirty[0]&512|n.$$.dirty[1]&64&&T&&W&&Te(),n.$$.dirty[0]&4104&&h&&j&&e.setClientStyling(j,h),n.$$.dirty[0]&4112&&f&&j&&e.setClientStylingURL(j,f),n.$$.dirty[0]&4100&&d&&j&&e.setStreamStyling(j,`${d}.Style`),n.$$.dirty[0]&4|n.$$.dirty[1]&4&&d&&!C&&e.getStreamTranslations(`${d}.Translation`,be,Z)},[o,u,d,h,f,b,R,m,p,T,P,M,j,_,E,N,H,G,I,U,V,s,F,ye,Y,Ce,Ee,O,ae,ze,i,l,c,C,z,k,x,W,Ne,De,Pe,Me,xe]}class we extends e.SvelteComponent{constructor(t){super(),e.init(this,t,$e,Xe,e.safe_not_equal,{endpoint:0,datasource:30,session:31,userid:32,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:33,showfavorites:9,cancelbutton:10,notfoundicon:11,controlchannel:34,allowedorigins:35,requiredicon:36},Je,[-1,-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[30]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[31]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[32]}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[33]}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()}get controlchannel(){return this.$$.ctx[34]}set controlchannel(t){this.$$set({controlchannel:t}),e.flush()}get allowedorigins(){return this.$$.ctx[35]}set allowedorigins(t){this.$$set({allowedorigins:t}),e.flush()}get requiredicon(){return this.$$.ctx[36]}set requiredicon(t){this.$$set({requiredicon:t}),e.flush()}}e.create_custom_element(we,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{},controlchannel:{},allowedorigins:{},requiredicon:{}},[],[],!0);exports.default=we;
|