@everymatrix/casino-search-nd 1.50.1 → 1.51.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CasinoGameThumbnailNd-GegRE8yM.js → CasinoGameThumbnailNd-D1RJ5MMN.js} +138 -130
- package/components/{CasinoGameThumbnailNd-CPq3HoKZ.cjs → CasinoGameThumbnailNd-DWniGJsw.cjs} +8 -8
- package/components/{CasinoSearchNd-C2fS4Inp.js → CasinoSearchNd-CtD_O_ZZ.js} +67 -57
- package/components/CasinoSearchNd-CtXtN7Vm.cjs +1 -0
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoSearchNd-sNI0YexC.cjs +0 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as He, $ as qe, S as We, i as Oe, f as
|
1
|
+
import { a as He, $ as qe, S as We, i as Oe, f as T, c as Ue, s as Ve, b as Je, e as y, d as x, g as le, h as f, j as ee, k as E, l as S, m as ie, n as J, o as ce, p as j, r as Ze, q as Ye, t as Ke, u as q, v as W, w as Q, x as ue, y as he, z as ye, A as Xe, B as d, C as Qe } from "./CasinoGameThumbnailNd-D1RJ5MMN.js";
|
2
2
|
function de(a, e) {
|
3
3
|
He(a, e);
|
4
4
|
}
|
@@ -176,6 +176,16 @@ const me = {
|
|
176
176
|
notFound: "Jogo não encontrado!",
|
177
177
|
notFoundText: "Por favor, digite o nome correto do jogo para começar a jogar.",
|
178
178
|
noRecentSearches: "Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."
|
179
|
+
},
|
180
|
+
"en-us": {
|
181
|
+
recentSearch: "Recent search",
|
182
|
+
placeHolderSearchGames: "Search for Games",
|
183
|
+
loading: "Loading, please wait",
|
184
|
+
searchResult: "Search result",
|
185
|
+
cancel: "Cancel",
|
186
|
+
notFound: "Game not found!",
|
187
|
+
notFoundText: "Please type the correct name of the game to start to play.",
|
188
|
+
noRecentSearches: "No recent searches yet. Search for any of our games."
|
179
189
|
}
|
180
190
|
};
|
181
191
|
if (typeof window != "undefined") {
|
@@ -190,7 +200,7 @@ if (typeof window != "undefined") {
|
|
190
200
|
}
|
191
201
|
};
|
192
202
|
};
|
193
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-D1RJ5MMN.js").then((e) => e.D).then(({ default: e }) => {
|
194
204
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
195
205
|
});
|
196
206
|
}
|
@@ -212,7 +222,7 @@ function fe(a) {
|
|
212
222
|
(a[12] ? "NotVisible" : ""));
|
213
223
|
},
|
214
224
|
m(i, c) {
|
215
|
-
|
225
|
+
E(i, e, c), S(e, n), l || (s = J(
|
216
226
|
e,
|
217
227
|
"click",
|
218
228
|
/*click_handler_1*/
|
@@ -258,7 +268,7 @@ function tt(a) {
|
|
258
268
|
(a[16] == !0 ? "" : "NotVisible"));
|
259
269
|
},
|
260
270
|
m(u, g) {
|
261
|
-
i && i.m(u, g),
|
271
|
+
i && i.m(u, g), E(u, e, g), E(u, t, g), c && c.m(t, null), S(t, n), m && m.m(t, null);
|
262
272
|
},
|
263
273
|
p(u, g) {
|
264
274
|
s === (s = l(u)) && i ? i.p(u, g) : (i && i.d(1), i = s && s(u), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
@@ -283,7 +293,7 @@ function at(a) {
|
|
283
293
|
e = y("p"), n = q(t), f(e, "class", "LoadingContent");
|
284
294
|
},
|
285
295
|
m(o, l) {
|
286
|
-
|
296
|
+
E(o, e, l), S(e, n);
|
287
297
|
},
|
288
298
|
p(o, l) {
|
289
299
|
l[0] & /*$_*/
|
@@ -305,7 +315,7 @@ function nt(a) {
|
|
305
315
|
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
306
316
|
},
|
307
317
|
m(o, l) {
|
308
|
-
|
318
|
+
E(o, e, l), S(e, n);
|
309
319
|
},
|
310
320
|
p(o, l) {
|
311
321
|
l[0] & /*$_*/
|
@@ -330,7 +340,7 @@ function rt(a) {
|
|
330
340
|
n && n.c(), e = x(), o && o.c(), t = ye();
|
331
341
|
},
|
332
342
|
m(l, s) {
|
333
|
-
n && n.m(l, s),
|
343
|
+
n && n.m(l, s), E(l, e, s), o && o.m(l, s), E(l, t, s);
|
334
344
|
},
|
335
345
|
p(l, s) {
|
336
346
|
/*searchArray*/
|
@@ -352,7 +362,7 @@ function pe(a) {
|
|
352
362
|
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
353
363
|
},
|
354
364
|
m(o, l) {
|
355
|
-
|
365
|
+
E(o, e, l), S(e, n);
|
356
366
|
},
|
357
367
|
p(o, l) {
|
358
368
|
l[0] & /*$_*/
|
@@ -378,7 +388,7 @@ function _e(a) {
|
|
378
388
|
(a[10] == "true" ? "WithIcon" : ""));
|
379
389
|
},
|
380
390
|
m(c, m) {
|
381
|
-
|
391
|
+
E(c, e, m), i && i.m(e, null), S(e, t), S(e, n), S(n, l);
|
382
392
|
},
|
383
393
|
p(c, m) {
|
384
394
|
/*notfoundicon*/
|
@@ -400,7 +410,7 @@ function Se(a) {
|
|
400
410
|
e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
401
411
|
},
|
402
412
|
m(t, n) {
|
403
|
-
|
413
|
+
E(t, e, n);
|
404
414
|
},
|
405
415
|
d(t) {
|
406
416
|
t && j(e);
|
@@ -423,7 +433,7 @@ function we(a) {
|
|
423
433
|
m(o, l) {
|
424
434
|
for (let s = 0; s < n.length; s += 1)
|
425
435
|
n[s] && n[s].m(o, l);
|
426
|
-
|
436
|
+
E(o, e, l);
|
427
437
|
},
|
428
438
|
p(o, l) {
|
429
439
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
@@ -528,7 +538,7 @@ function be(a) {
|
|
528
538
|
);
|
529
539
|
},
|
530
540
|
m(h, _) {
|
531
|
-
|
541
|
+
E(h, e, _);
|
532
542
|
},
|
533
543
|
p(h, _) {
|
534
544
|
var N;
|
@@ -651,7 +661,7 @@ function ve(a) {
|
|
651
661
|
(a[10] == "true" ? "WithIcon" : ""));
|
652
662
|
},
|
653
663
|
m(k, h) {
|
654
|
-
|
664
|
+
E(k, e, h), g && g.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, m);
|
655
665
|
},
|
656
666
|
p(k, h) {
|
657
667
|
/*notfoundicon*/
|
@@ -675,7 +685,7 @@ function ke(a) {
|
|
675
685
|
e = y("div"), e.innerHTML = '<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>', f(e, "class", "SearchErrorIcon");
|
676
686
|
},
|
677
687
|
m(t, n) {
|
678
|
-
|
688
|
+
E(t, e, n);
|
679
689
|
},
|
680
690
|
d(t) {
|
681
691
|
t && j(e);
|
@@ -707,7 +717,7 @@ function ot(a) {
|
|
707
717
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
708
718
|
},
|
709
719
|
m(b, F) {
|
710
|
-
|
720
|
+
E(b, e, F), S(e, t), S(t, n), S(n, o), S(n, l), S(n, s), ie(
|
711
721
|
s,
|
712
722
|
/*searchValue*/
|
713
723
|
a[11]
|
@@ -768,7 +778,7 @@ let st = 50;
|
|
768
778
|
function lt(a, e, t) {
|
769
779
|
let n;
|
770
780
|
Ye(a, Qe, (r) => t(20, n = r));
|
771
|
-
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, A = window.navigator.userAgent, M = [], v = [], O = {}, I = "", L, b = !0, F = !1,
|
781
|
+
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { clientstyling: m = "" } = e, { clientstylingurl: u = "" } = e, { integratedgameframedesktop: g = "false" } = e, { integratedgameframemobile: k = "false" } = e, { showgamename: h = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: N = "" } = e, { showfavorites: P = "" } = e, { cancelbutton: D = "true" } = e, { notfoundicon: U = "false" } = e, A = window.navigator.userAgent, M = [], v = [], O = {}, I = "", L, b = !0, F = !1, z = !1, B, Z = !1, Y, K, te = [];
|
772
782
|
const Re = () => {
|
773
783
|
fetch(N).then((p) => p.json()).then((p) => {
|
774
784
|
Object.keys(p).forEach((w) => {
|
@@ -791,14 +801,14 @@ function lt(a, e, t) {
|
|
791
801
|
let w = [], R = 0, C = p.length;
|
792
802
|
if (C > 0) {
|
793
803
|
for (R = 0; R < C; R++) {
|
794
|
-
let
|
795
|
-
|
804
|
+
let G = new URL(`${o}/v1/casino/games/${p[R]}`);
|
805
|
+
G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ee(A)), w.push(Le(G, p[R]));
|
796
806
|
}
|
797
|
-
Promise.all(w).then((
|
798
|
-
|
807
|
+
Promise.all(w).then((G) => {
|
808
|
+
G = G.filter(function(H) {
|
799
809
|
return !!H;
|
800
|
-
}), t(14, M =
|
801
|
-
}).catch((
|
810
|
+
}), t(14, M = G.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
|
811
|
+
}).catch((G) => {
|
802
812
|
V("searchError", "SearchWidget");
|
803
813
|
});
|
804
814
|
}
|
@@ -809,35 +819,35 @@ function lt(a, e, t) {
|
|
809
819
|
}, Ce = () => {
|
810
820
|
D != "true" && X();
|
811
821
|
}, Fe = (r) => new Promise((p, w) => {
|
812
|
-
t(17,
|
813
|
-
t(17,
|
822
|
+
t(17, z = !0), fetch(r.href).then((R) => R.json()).then((R) => {
|
823
|
+
t(17, z = !1), p(R);
|
814
824
|
}).catch((R) => {
|
815
|
-
t(17,
|
825
|
+
t(17, z = !1), console.error(R), w(R);
|
816
826
|
});
|
817
827
|
}), Le = (r, p) => new Promise((w, R) => {
|
818
|
-
t(17,
|
819
|
-
t(17,
|
828
|
+
t(17, z = !0), p && Object.keys(O).indexOf(p) >= 0 ? (t(17, z = !1), w(O[p])) : fetch(r).then((C) => C.json()).then((C) => {
|
829
|
+
t(17, z = !1), C.error || (O[C[0].gameId] = C[0]), w(C[0]);
|
820
830
|
}).catch((C) => {
|
821
|
-
t(17,
|
831
|
+
t(17, z = !1), console.error(C), R(C);
|
822
832
|
});
|
823
|
-
}),
|
833
|
+
}), Te = () => {
|
824
834
|
const r = new URL(`${o}/v1/player/${K}/favorites/`);
|
825
|
-
t(17,
|
835
|
+
t(17, z = !0);
|
826
836
|
let p = {
|
827
837
|
method: "GET",
|
828
838
|
headers: { "X-SessionID": Y }
|
829
839
|
};
|
830
840
|
fetch(r.href, p).then((w) => w.json()).then((w) => {
|
831
|
-
t(17,
|
841
|
+
t(17, z = !1), te = w.items.map((R) => R.id);
|
832
842
|
});
|
833
|
-
},
|
843
|
+
}, Ee = () => {
|
834
844
|
t(31, Z = !0), t(18, Y = s), t(19, K = i);
|
835
845
|
}, re = (r) => te.findIndex((p) => p == r) !== -1, je = (r) => {
|
836
846
|
if ((r == null ? void 0 : r.length) === 0) return "";
|
837
847
|
let p, w = 99999999999, R;
|
838
848
|
const C = new Date(Date.now());
|
839
|
-
return r.forEach((
|
840
|
-
const Be = new Date(
|
849
|
+
return r.forEach((G, H) => {
|
850
|
+
const Be = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
|
841
851
|
Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(Be) && Q(C).isBefore($) && (p = r[R].name);
|
842
852
|
}), p;
|
843
853
|
}, Ie = (r) => {
|
@@ -846,7 +856,7 @@ function lt(a, e, t) {
|
|
846
856
|
v.unshift(r), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
|
847
857
|
}
|
848
858
|
}, X = () => {
|
849
|
-
t(11, I = ""), t(12, b = !0), t(17,
|
859
|
+
t(11, I = ""), t(12, b = !0), t(17, z = !1), t(14, M = []), t(16, F = !1), se(F);
|
850
860
|
}, oe = () => {
|
851
861
|
t(11, I = ""), L.focus();
|
852
862
|
}, se = (r) => {
|
@@ -857,9 +867,9 @@ function lt(a, e, t) {
|
|
857
867
|
},
|
858
868
|
window.location.href
|
859
869
|
);
|
860
|
-
}, ze = () => {
|
861
|
-
$e(c);
|
862
870
|
}, Ge = () => {
|
871
|
+
$e(c);
|
872
|
+
}, ze = () => {
|
863
873
|
let r = document.createElement("style");
|
864
874
|
r.innerHTML = m, B.appendChild(r);
|
865
875
|
}, xe = () => {
|
@@ -903,12 +913,12 @@ function lt(a, e, t) {
|
|
903
913
|
} else
|
904
914
|
b || ne();
|
905
915
|
a.$$.dirty[0] & /*lang*/
|
906
|
-
2 && c &&
|
916
|
+
2 && c && Ge(), a.$$.dirty[0] & /*translationurl*/
|
907
917
|
1073741824 && N && Re(), a.$$.dirty[0] & /*session, userid*/
|
908
|
-
805306368 && s && i &&
|
918
|
+
805306368 && s && i && Ee(), a.$$.dirty[0] & /*showfavorites*/
|
909
919
|
256 | a.$$.dirty[1] & /*isLoggedIn*/
|
910
|
-
1 && P && Z &&
|
911
|
-
8196 && m && B &&
|
920
|
+
1 && P && Z && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
921
|
+
8196 && m && B && ze(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
912
922
|
8200 && u && B && xe();
|
913
923
|
}, [
|
914
924
|
o,
|
@@ -928,7 +938,7 @@ function lt(a, e, t) {
|
|
928
938
|
M,
|
929
939
|
L,
|
930
940
|
F,
|
931
|
-
|
941
|
+
z,
|
932
942
|
Y,
|
933
943
|
K,
|
934
944
|
n,
|
@@ -983,91 +993,91 @@ class it extends We {
|
|
983
993
|
return this.$$.ctx[0];
|
984
994
|
}
|
985
995
|
set endpoint(e) {
|
986
|
-
this.$$set({ endpoint: e }),
|
996
|
+
this.$$set({ endpoint: e }), T();
|
987
997
|
}
|
988
998
|
get datasource() {
|
989
999
|
return this.$$.ctx[27];
|
990
1000
|
}
|
991
1001
|
set datasource(e) {
|
992
|
-
this.$$set({ datasource: e }),
|
1002
|
+
this.$$set({ datasource: e }), T();
|
993
1003
|
}
|
994
1004
|
get session() {
|
995
1005
|
return this.$$.ctx[28];
|
996
1006
|
}
|
997
1007
|
set session(e) {
|
998
|
-
this.$$set({ session: e }),
|
1008
|
+
this.$$set({ session: e }), T();
|
999
1009
|
}
|
1000
1010
|
get userid() {
|
1001
1011
|
return this.$$.ctx[29];
|
1002
1012
|
}
|
1003
1013
|
set userid(e) {
|
1004
|
-
this.$$set({ userid: e }),
|
1014
|
+
this.$$set({ userid: e }), T();
|
1005
1015
|
}
|
1006
1016
|
get lang() {
|
1007
1017
|
return this.$$.ctx[1];
|
1008
1018
|
}
|
1009
1019
|
set lang(e) {
|
1010
|
-
this.$$set({ lang: e }),
|
1020
|
+
this.$$set({ lang: e }), T();
|
1011
1021
|
}
|
1012
1022
|
get clientstyling() {
|
1013
1023
|
return this.$$.ctx[2];
|
1014
1024
|
}
|
1015
1025
|
set clientstyling(e) {
|
1016
|
-
this.$$set({ clientstyling: e }),
|
1026
|
+
this.$$set({ clientstyling: e }), T();
|
1017
1027
|
}
|
1018
1028
|
get clientstylingurl() {
|
1019
1029
|
return this.$$.ctx[3];
|
1020
1030
|
}
|
1021
1031
|
set clientstylingurl(e) {
|
1022
|
-
this.$$set({ clientstylingurl: e }),
|
1032
|
+
this.$$set({ clientstylingurl: e }), T();
|
1023
1033
|
}
|
1024
1034
|
get integratedgameframedesktop() {
|
1025
1035
|
return this.$$.ctx[4];
|
1026
1036
|
}
|
1027
1037
|
set integratedgameframedesktop(e) {
|
1028
|
-
this.$$set({ integratedgameframedesktop: e }),
|
1038
|
+
this.$$set({ integratedgameframedesktop: e }), T();
|
1029
1039
|
}
|
1030
1040
|
get integratedgameframemobile() {
|
1031
1041
|
return this.$$.ctx[5];
|
1032
1042
|
}
|
1033
1043
|
set integratedgameframemobile(e) {
|
1034
|
-
this.$$set({ integratedgameframemobile: e }),
|
1044
|
+
this.$$set({ integratedgameframemobile: e }), T();
|
1035
1045
|
}
|
1036
1046
|
get showgamename() {
|
1037
1047
|
return this.$$.ctx[6];
|
1038
1048
|
}
|
1039
1049
|
set showgamename(e) {
|
1040
|
-
this.$$set({ showgamename: e }),
|
1050
|
+
this.$$set({ showgamename: e }), T();
|
1041
1051
|
}
|
1042
1052
|
get gamepagemodalurl() {
|
1043
1053
|
return this.$$.ctx[7];
|
1044
1054
|
}
|
1045
1055
|
set gamepagemodalurl(e) {
|
1046
|
-
this.$$set({ gamepagemodalurl: e }),
|
1056
|
+
this.$$set({ gamepagemodalurl: e }), T();
|
1047
1057
|
}
|
1048
1058
|
get translationurl() {
|
1049
1059
|
return this.$$.ctx[30];
|
1050
1060
|
}
|
1051
1061
|
set translationurl(e) {
|
1052
|
-
this.$$set({ translationurl: e }),
|
1062
|
+
this.$$set({ translationurl: e }), T();
|
1053
1063
|
}
|
1054
1064
|
get showfavorites() {
|
1055
1065
|
return this.$$.ctx[8];
|
1056
1066
|
}
|
1057
1067
|
set showfavorites(e) {
|
1058
|
-
this.$$set({ showfavorites: e }),
|
1068
|
+
this.$$set({ showfavorites: e }), T();
|
1059
1069
|
}
|
1060
1070
|
get cancelbutton() {
|
1061
1071
|
return this.$$.ctx[9];
|
1062
1072
|
}
|
1063
1073
|
set cancelbutton(e) {
|
1064
|
-
this.$$set({ cancelbutton: e }),
|
1074
|
+
this.$$set({ cancelbutton: e }), T();
|
1065
1075
|
}
|
1066
1076
|
get notfoundicon() {
|
1067
1077
|
return this.$$.ctx[10];
|
1068
1078
|
}
|
1069
1079
|
set notfoundicon(e) {
|
1070
|
-
this.$$set({ notfoundicon: e }),
|
1080
|
+
this.$$set({ notfoundicon: e }), T();
|
1071
1081
|
}
|
1072
1082
|
}
|
1073
1083
|
Ue(it, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-DWniGJsw.cjs");function Y(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const K={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:"Sırala:",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."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-DWniGJsw.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Ce(n){e.append_styles(n,"svelte-2xbwo7","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 40px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-white, #FFF);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));padding-right:28px}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E))}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function X(n,t,a){const r=n.slice();return r[53]=t[a],r}function Q(n){let t,a=n[20]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",o="SearchCancelButton "+(n[12]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[35]),i=!0)},p(c,u){u[0]&1048576&&a!==(a=c[20]("cancel")+"")&&e.set_data(r,a),u[0]&4096&&o!==(o="SearchCancelButton "+(c[12]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,o;function i(d,f){if(d[16]==!0&&d[11].length<2)return Ee;if(d[14].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[12]===!1&&ae(n),m=n[11].length>=2&&n[14].length==0&&re(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",o="SearchResultsContainer "+(n[16]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[12]===!1?u?u.p(d,f):(u=ae(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[11].length>=2&&d[14].length==0?m?m.p(d,f):(m=re(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[0]&65536&&o!==(o="SearchResultsContainer "+(d[16]==!0?"":"NotVisible"))&&e.attr(a,"class",o)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),m&&m.d()}}}function Le(n){let t,a=n[20]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("loading")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function Te(n){let t,a=n[20]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("searchResult")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function Ee(n){let t,a,r=n[14].length!==0&&$(n),o=n[14].length==0&&ee(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,a,l)},p(i,l){i[14].length!==0?r?r.p(i,l):(r=$(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[14].length==0?o?o.p(i,l):(o=ee(i),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),o&&o.d(i)}}}function $(n){let t,a=n[20]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("recentSearch")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function ee(n){let t,a,r,o=n[20]("noRecentSearches")+"",i,l,c=n[10]==="true"&&te();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[10]==="true"?c||(c=te(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&1048576&&o!==(o=u[20]("noRecentSearches")+"")&&e.set_data(i,o),m[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function te(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ae(n){let t,a=e.ensure_array_like(n[14]),r=[];for(let o=0;o<a.length;o+=1)r[o]=ne(X(n,a,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&17580543){a=e.ensure_array_like(o[14]);let l;for(l=0;l<a.length;l+=1){const c=X(o,a,l);r[l]?r[l].p(c,i):(r[l]=ne(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ne(n){let t,a,r,o,i,l,c,u,m,d,f,b;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[18]),e.set_custom_element_data(t,"userid",n[19]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",o=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[24](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",b=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7])},m(h,p){e.insert(h,t,p)},p(h,p){var T;p[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),p[0]&262144&&e.set_custom_element_data(t,"session",h[18]),p[0]&524288&&e.set_custom_element_data(t,"userid",h[19]),p[0]&256&&e.set_custom_element_data(t,"favorites",h[8]),p[0]&2&&e.set_custom_element_data(t,"lang",h[1]),p[0]&16384&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&16384&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),p[0]&16384&&o!==(o=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",o),p[0]&16384&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),p[0]&16384&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),p[0]&16384&&c!==(c=((T=h[53].advancedTags)==null?void 0:T.length)>0&&h[24](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),p[0]&16384&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),p[0]&16384&&m!==(m=h[53].id)&&e.set_custom_element_data(t,"gameid",m),p[0]&64&&e.set_custom_element_data(t,"showgamename",h[6]),p[0]&16384&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),p[0]&16384&&f!==(f=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),p[0]&16384&&b!==(b=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",b),p[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",h[4]),p[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",h[5]),p[0]&4&&e.set_custom_element_data(t,"clientstyling",h[2]),p[0]&8&&e.set_custom_element_data(t,"clientstylingurl",h[3]),p[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",h[7])},d(h){h&&e.detach(t)}}}function re(n){let t,a,r,o=n[20]("notFound")+"",i,l,c,u=n[20]("notFoundText")+"",m,d,f=n[10]==="true"&&se();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(b,h){e.insert(b,t,h),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,m)},p(b,h){b[10]==="true"?f||(f=se(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),h[0]&1048576&&o!==(o=b[20]("notFound")+"")&&e.set_data(i,o),h[0]&1048576&&u!==(u=b[20]("notFoundText")+"")&&e.set_data(m,u),h[0]&1024&&d!==(d="ResultsContainerError "+(b[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(b){b&&e.detach(t),f&&f.d()}}}function se(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,o,i,l,c,u,m,d,f,b,h,p,T,E,G,P,I,j,w=n[9]==="true"&&Q(n);function N(S,y){return S[17]?Le:Fe}let C=N(n),R=C(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),w&&w.c(),T=e.space(),E=e.element("div"),P=e.space(),R.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[20]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"class",b="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[11].length!=0?"":"NotVisible")),e.attr(r,"class",p="Search "+(n[12]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",G=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[21])!=="PC"?"":"Desktop")+" CasinoSearch")},m(S,y){e.insert(S,t,y),e.append(t,a),e.append(a,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,n[11]),n[33](l),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),w&&w.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),R.m(t,null),n[36](t),I||(j=[e.listen(l,"input",n[32]),e.listen(l,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(E,"click",n[23])],I=!0)},p(S,y){y[0]&1048576&&c!==(c=S[20]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),y[0]&2048&&l.value!==S[11]&&e.set_input_value(l,S[11]),y[0]&2560&&b!==(b="SearchClearButton "+(S[9]!="true"?"WithoutCancel":"")+" "+(S[11].length!=0?"":"NotVisible"))&&e.attr(m,"class",b),S[9]==="true"?w?w.p(S,y):(w=Q(S),w.c(),w.m(r,null)):w&&(w.d(1),w=null),y[0]&4096&&p!==(p="Search "+(S[12]?"":"SearchAnimation"))&&e.attr(r,"class",p),y[0]&512&&G!==(G=S[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",G),C===(C=N(S))&&R?R.p(S,y):(R.d(1),R=C(S),R&&(R.c(),R.m(t,null)))},i:e.noop,o:e.noop,d(S){S&&e.detach(t),n[33](null),w&&w.d(),R.d(),n[36](null),I=!1,e.run_all(j)}}}let Ge=50;function Ie(n,t,a){let r;e.component_subscribe(n,e.$format,s=>a(20,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:b="false"}=t,{showgamename:h=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:G="true"}=t,{notfoundicon:P="false"}=t,I=window.navigator.userAgent,j=[],w=[],N={},C="",R,S=!0,y=!1,L=!1,x,D=!1,A,B,W=[];const le=()=>{fetch(T).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{Y(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(K).forEach(s=>{Y(s,K[s])});const O=s=>{s.data&&s.data.type=="SearchedItemClicked"&&fe(s.data.gameId),s.data.type=="UserSessionID"&&(a(18,A=s.data.session),a(19,B=s.data.userid),a(31,D=!0)),s.data.type=="CategoryChange"&&H()},U=()=>{if(a(12,S=!1),a(16,y=!0),o&&i&&u&&C.length<2){a(14,j=[]);let s=localStorage.getItem("searchedGamesWds_casino"),g=[];s&&(g=s.split(","));let _=[],v=0,k=g.length;if(k>0){for(v=0;v<k;v++){let F=new URL(`${o}/v1/casino/games/${g[v]}`);F.searchParams.append("language",u),F.searchParams.append("datasource",i),F.searchParams.append("platform",e.getDevice(I)),_.push(ue(F,g[v]))}Promise.all(_).then(F=>{F=F.filter(function(z){return!!z}),a(14,j=F.map(z=>(z.isFavorite=V(z.id),z))),j.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(F=>{M("searchError","SearchWidget")})}}Z(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,g)=>{typeof gtag=="function"&>ag("event",s,{context:g})},ie=()=>{G!="true"&&H()},ce=s=>new Promise((g,_)=>{a(17,L=!0),fetch(s.href).then(v=>v.json()).then(v=>{a(17,L=!1),g(v)}).catch(v=>{a(17,L=!1),console.error(v),_(v)})}),ue=(s,g)=>new Promise((_,v)=>{a(17,L=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,L=!1),_(N[g])):fetch(s).then(k=>k.json()).then(k=>{a(17,L=!1),k.error||(N[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,L=!1),console.error(k),v(k)})}),de=()=>{const s=new URL(`${o}/v1/player/${B}/favorites/`);a(17,L=!0);let g={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,L=!1),W=_.items.map(v=>v.id)})},he=()=>{a(31,D=!0),a(18,A=l),a(19,B=c)},V=s=>W.findIndex(g=>g==s)!==-1,me=s=>{if((s==null?void 0:s.length)===0)return"";let g,_=99999999999,v;const k=new Date(Date.now());return s.forEach((F,z)=>{const ye=new Date(F.schedules[0].startTime),q=new Date(F.schedules[0].endTime);e.hooks(q).diff(k)<_&&(_=e.hooks(q).diff(k),v=z),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(q)&&(g=s[v].name)}),g},fe=s=>{if(w=localStorage.getItem("searchedGamesWds_casino"),w?w=w.split(","):w=[],w.indexOf(s)===-1){let g;w.unshift(s),g=w.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},H=()=>{a(11,C=""),a(12,S=!0),a(17,L=!1),a(14,j=[]),a(16,y=!1),Z(y)},J=()=>{a(11,C=""),R.focus()},Z=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ge=()=>{Re(u)},pe=()=>{let s=document.createElement("style");s.innerHTML=m,x.appendChild(s)},_e=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{x.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));function Se(){C=this.value,a(11,C)}function we(s){e.binding_callbacks[s?"unshift":"push"](()=>{R=s,a(15,R)})}const be=()=>J(),ve=()=>H();function ke(s){e.binding_callbacks[s?"unshift":"push"](()=>{x=s,a(13,x)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(27,i=s.datasource),"session"in s&&a(28,l=s.session),"userid"in s&&a(29,c=s.userid),"lang"in s&&a(1,u=s.lang),"clientstyling"in s&&a(2,m=s.clientstyling),"clientstylingurl"in s&&a(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&a(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&a(5,b=s.integratedgameframemobile),"showgamename"in s&&a(6,h=s.showgamename),"gamepagemodalurl"in s&&a(7,p=s.gamepagemodalurl),"translationurl"in s&&a(30,T=s.translationurl),"showfavorites"in s&&a(8,E=s.showfavorites),"cancelbutton"in s&&a(9,G=s.cancelbutton),"notfoundicon"in s&&a(10,P=s.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&134223875)if(C.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(I)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${C}`),ce(s).then(g=>{a(14,j=g.items.map(_=>(_.isFavorite=V(_.id),_)))})}else S||U();n.$$.dirty[0]&2&&u&&ge(),n.$$.dirty[0]&1073741824&&T&&le(),n.$$.dirty[0]&805306368&&l&&c&&he(),n.$$.dirty[0]&256|n.$$.dirty[1]&1&&E&&D&&de(),n.$$.dirty[0]&8196&&m&&x&&pe(),n.$$.dirty[0]&8200&&d&&x&&_e()},[o,u,m,d,f,b,h,p,E,G,P,C,S,x,j,R,y,L,A,B,r,I,U,ie,me,H,J,i,l,c,T,D,Se,we,be,ve,ke]}class oe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ie,je,e.safe_not_equal,{endpoint:0,datasource:27,session:28,userid:29,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:30,showfavorites:8,cancelbutton:9,notfoundicon:10},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[27]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}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[30]}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()}}e.create_custom_element(oe,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=oe;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoSearchNd-CtXtN7Vm.cjs")).then(({default:t})=>{!customElements.get("casino-search-nd")&&customElements.define("casino-search-nd",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoSearchNd-CtD_O_ZZ.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("casino-search-nd") && customElements.define("casino-search-nd", t.element);
|
15
15
|
});
|
16
16
|
}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoGameThumbnailNd-CPq3HoKZ.cjs");function Y(n,t){e.addMessages(n,t)}function Ce(n){e.$locale.set(n)}const K={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:"Sırala:",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."}};if(typeof window!="undefined"){let n=function(t){return function(...a){try{return t.apply(this,a)}catch(r){if(r instanceof DOMException&&r.message.includes("has already been used with this registry")||r.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw r}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("./CasinoGameThumbnailNd-CPq3HoKZ.cjs")).then(t=>t.CasinoGameThumbnailNd_ce).then(({default:t})=>{!customElements.get("casino-game-thumbnail-nd")&&customElements.define("casino-game-thumbnail-nd",t.element)})}function Re(n){e.append_styles(n,"svelte-2xbwo7","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:30px 40px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:-webkit-linear-gradient(to left, 90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);background:linear-gradient(90deg, rgb(35, 172, 77) 0%, rgb(18, 62, 33) 100%);border-radius:var(--emw--border-radius-medium, 20px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emw--color-white, #FFF);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E));padding-right:28px}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:30px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background:var(--emw--pam-color-primary, var(--emw--color-primary, #23B04E))}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function X(n,t,a){const r=n.slice();return r[53]=t[a],r}function Q(n){let t,a=n[20]("cancel")+"",r,o,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",o="SearchCancelButton "+(n[12]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[35]),i=!0)},p(c,u){u[0]&1048576&&a!==(a=c[20]("cancel")+"")&&e.set_data(r,a),u[0]&4096&&o!==(o="SearchCancelButton "+(c[12]?"NotVisible":""))&&e.attr(t,"class",o)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,o;function i(d,f){if(d[16]==!0&&d[11].length<2)return Ee;if(d[14].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[12]===!1&&ae(n),m=n[11].length>=2&&n[14].length==0&&re(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),m&&m.c(),e.attr(a,"class",o="SearchResultsContainer "+(n[16]==!0?"":"NotVisible"))},m(d,f){c&&c.m(d,f),e.insert(d,t,f),e.insert(d,a,f),u&&u.m(a,null),e.append(a,r),m&&m.m(a,null)},p(d,f){l===(l=i(d))&&c?c.p(d,f):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[12]===!1?u?u.p(d,f):(u=ae(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[11].length>=2&&d[14].length==0?m?m.p(d,f):(m=re(d),m.c(),m.m(a,null)):m&&(m.d(1),m=null),f[0]&65536&&o!==(o="SearchResultsContainer "+(d[16]==!0?"":"NotVisible"))&&e.attr(a,"class",o)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),m&&m.d()}}}function Le(n){let t,a=n[20]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("loading")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function Te(n){let t,a=n[20]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("searchResult")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function Ee(n){let t,a,r=n[14].length!==0&&$(n),o=n[14].length==0&&ee(n);return{c(){r&&r.c(),t=e.space(),o&&o.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),o&&o.m(i,l),e.insert(i,a,l)},p(i,l){i[14].length!==0?r?r.p(i,l):(r=$(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[14].length==0?o?o.p(i,l):(o=ee(i),o.c(),o.m(a.parentNode,a)):o&&(o.d(1),o=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),o&&o.d(i)}}}function $(n){let t,a=n[20]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(o,i){e.insert(o,t,i),e.append(t,r)},p(o,i){i[0]&1048576&&a!==(a=o[20]("recentSearch")+"")&&e.set_data(r,a)},d(o){o&&e.detach(t)}}}function ee(n){let t,a,r,o=n[20]("noRecentSearches")+"",i,l,c=n[10]==="true"&&te();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(o),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(u,m){e.insert(u,t,m),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,m){u[10]==="true"?c||(c=te(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),m[0]&1048576&&o!==(o=u[20]("noRecentSearches")+"")&&e.set_data(i,o),m[0]&1024&&l!==(l="ResultsContainerError "+(u[10]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function te(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function ae(n){let t,a=e.ensure_array_like(n[14]),r=[];for(let o=0;o<a.length;o+=1)r[o]=ne(X(n,a,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();t=e.empty()},m(o,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(o,i);e.insert(o,t,i)},p(o,i){if(i[0]&17580543){a=e.ensure_array_like(o[14]);let l;for(l=0;l<a.length;l+=1){const c=X(o,a,l);r[l]?r[l].p(c,i):(r[l]=ne(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(o){o&&e.detach(t),e.destroy_each(r,o)}}}function ne(n){let t,a,r,o,i,l,c,u,m,d,f,w;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[18]),e.set_custom_element_data(t,"userid",n[19]),e.set_custom_element_data(t,"favorites",n[8]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",o=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[24](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",m=n[53].id),e.set_custom_element_data(t,"showgamename",n[6]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",f=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",w=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[4]),e.set_custom_element_data(t,"integratedgameframemobile",n[5]),e.set_custom_element_data(t,"clientstyling",n[2]),e.set_custom_element_data(t,"clientstylingurl",n[3]),e.set_custom_element_data(t,"gamepagemodalurl",n[7])},m(h,p){e.insert(h,t,p)},p(h,p){var T;p[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),p[0]&262144&&e.set_custom_element_data(t,"session",h[18]),p[0]&524288&&e.set_custom_element_data(t,"userid",h[19]),p[0]&256&&e.set_custom_element_data(t,"favorites",h[8]),p[0]&2&&e.set_custom_element_data(t,"lang",h[1]),p[0]&16384&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),p[0]&16384&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),p[0]&16384&&o!==(o=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",o),p[0]&16384&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),p[0]&16384&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),p[0]&16384&&c!==(c=((T=h[53].advancedTags)==null?void 0:T.length)>0&&h[24](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),p[0]&16384&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),p[0]&16384&&m!==(m=h[53].id)&&e.set_custom_element_data(t,"gameid",m),p[0]&64&&e.set_custom_element_data(t,"showgamename",h[6]),p[0]&16384&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),p[0]&16384&&f!==(f=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",f),p[0]&16384&&w!==(w=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",w),p[0]&16&&e.set_custom_element_data(t,"integratedgameframedesktop",h[4]),p[0]&32&&e.set_custom_element_data(t,"integratedgameframemobile",h[5]),p[0]&4&&e.set_custom_element_data(t,"clientstyling",h[2]),p[0]&8&&e.set_custom_element_data(t,"clientstylingurl",h[3]),p[0]&128&&e.set_custom_element_data(t,"gamepagemodalurl",h[7])},d(h){h&&e.detach(t)}}}function re(n){let t,a,r,o=n[20]("notFound")+"",i,l,c,u=n[20]("notFoundText")+"",m,d,f=n[10]==="true"&&se();return{c(){t=e.element("div"),f&&f.c(),a=e.space(),r=e.element("p"),i=e.text(o),l=e.space(),c=e.element("p"),m=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[10]=="true"?"WithIcon":""))},m(w,h){e.insert(w,t,h),f&&f.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,m)},p(w,h){w[10]==="true"?f||(f=se(),f.c(),f.m(t,a)):f&&(f.d(1),f=null),h[0]&1048576&&o!==(o=w[20]("notFound")+"")&&e.set_data(i,o),h[0]&1048576&&u!==(u=w[20]("notFoundText")+"")&&e.set_data(m,u),h[0]&1024&&d!==(d="ResultsContainerError "+(w[10]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(w){w&&e.detach(t),f&&f.d()}}}function se(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,o,i,l,c,u,m,d,f,w,h,p,T,E,I,P,x,j,b=n[9]==="true"&&Q(n);function N(S,y){return S[17]?Le:Fe}let R=N(n),C=R(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),o=e.element("div"),o.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),m=e.element("span"),d=e.svg_element("svg"),f=e.svg_element("path"),h=e.space(),b&&b.c(),T=e.space(),E=e.element("div"),P=e.space(),C.c(),e.attr(o,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[20]("placeHolderSearchGames")),e.attr(l,"maxlength",Ie),e.attr(f,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(f,"stroke","#717171"),e.attr(f,"stroke-width","2"),e.attr(f,"stroke-linecap","round"),e.attr(f,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"class",w="SearchClearButton "+(n[9]!="true"?"WithoutCancel":"")+" "+(n[11].length!=0?"":"NotVisible")),e.attr(r,"class",p="Search "+(n[12]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(E,"class",I=n[9]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[21])!=="PC"?"":"Desktop")+" CasinoSearch")},m(S,y){e.insert(S,t,y),e.append(t,a),e.append(a,r),e.append(r,o),e.append(r,i),e.append(r,l),e.set_input_value(l,n[11]),n[33](l),e.append(r,u),e.append(r,m),e.append(m,d),e.append(d,f),e.append(r,h),b&&b.m(r,null),e.append(t,T),e.append(t,E),e.append(t,P),C.m(t,null),n[36](t),x||(j=[e.listen(l,"input",n[32]),e.listen(l,"focus",n[22]),e.listen(m,"click",n[34]),e.listen(E,"click",n[23])],x=!0)},p(S,y){y[0]&1048576&&c!==(c=S[20]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),y[0]&2048&&l.value!==S[11]&&e.set_input_value(l,S[11]),y[0]&2560&&w!==(w="SearchClearButton "+(S[9]!="true"?"WithoutCancel":"")+" "+(S[11].length!=0?"":"NotVisible"))&&e.attr(m,"class",w),S[9]==="true"?b?b.p(S,y):(b=Q(S),b.c(),b.m(r,null)):b&&(b.d(1),b=null),y[0]&4096&&p!==(p="Search "+(S[12]?"":"SearchAnimation"))&&e.attr(r,"class",p),y[0]&512&&I!==(I=S[9]!="true"?"OverlayCancel":"")&&e.attr(E,"class",I),R===(R=N(S))&&C?C.p(S,y):(C.d(1),C=R(S),C&&(C.c(),C.m(t,null)))},i:e.noop,o:e.noop,d(S){S&&e.detach(t),n[33](null),b&&b.d(),C.d(),n[36](null),x=!1,e.run_all(j)}}}let Ie=50;function xe(n,t,a){let r;e.component_subscribe(n,e.$format,s=>a(20,r=s));let{endpoint:o=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{clientstyling:m=""}=t,{clientstylingurl:d=""}=t,{integratedgameframedesktop:f="false"}=t,{integratedgameframemobile:w="false"}=t,{showgamename:h=""}=t,{gamepagemodalurl:p="true"}=t,{translationurl:T=""}=t,{showfavorites:E=""}=t,{cancelbutton:I="true"}=t,{notfoundicon:P="false"}=t,x=window.navigator.userAgent,j=[],b=[],N={},R="",C,S=!0,y=!1,L=!1,G,D=!1,A,B,W=[];const le=()=>{fetch(T).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{Y(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(K).forEach(s=>{Y(s,K[s])});const O=s=>{s.data&&s.data.type=="SearchedItemClicked"&&fe(s.data.gameId),s.data.type=="UserSessionID"&&(a(18,A=s.data.session),a(19,B=s.data.userid),a(31,D=!0)),s.data.type=="CategoryChange"&&H()},U=()=>{if(a(12,S=!1),a(16,y=!0),o&&i&&u&&R.length<2){a(14,j=[]);let s=localStorage.getItem("searchedGamesWds_casino"),g=[];s&&(g=s.split(","));let _=[],v=0,k=g.length;if(k>0){for(v=0;v<k;v++){let F=new URL(`${o}/v1/casino/games/${g[v]}`);F.searchParams.append("language",u),F.searchParams.append("datasource",i),F.searchParams.append("platform",e.getDevice(x)),_.push(ue(F,g[v]))}Promise.all(_).then(F=>{F=F.filter(function(z){return!!z}),a(14,j=F.map(z=>(z.isFavorite=V(z.id),z))),j.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(F=>{M("searchError","SearchWidget")})}}Z(y),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(s,g)=>{typeof gtag=="function"&>ag("event",s,{context:g})},ie=()=>{I!="true"&&H()},ce=s=>new Promise((g,_)=>{a(17,L=!0),fetch(s.href).then(v=>v.json()).then(v=>{a(17,L=!1),g(v)}).catch(v=>{a(17,L=!1),console.error(v),_(v)})}),ue=(s,g)=>new Promise((_,v)=>{a(17,L=!0),g&&Object.keys(N).indexOf(g)>=0?(a(17,L=!1),_(N[g])):fetch(s).then(k=>k.json()).then(k=>{a(17,L=!1),k.error||(N[k[0].gameId]=k[0]),_(k[0])}).catch(k=>{a(17,L=!1),console.error(k),v(k)})}),de=()=>{const s=new URL(`${o}/v1/player/${B}/favorites/`);a(17,L=!0);let g={method:"GET",headers:{"X-SessionID":A}};fetch(s.href,g).then(_=>_.json()).then(_=>{a(17,L=!1),W=_.items.map(v=>v.id)})},he=()=>{a(31,D=!0),a(18,A=l),a(19,B=c)},V=s=>W.findIndex(g=>g==s)!==-1,me=s=>{if((s==null?void 0:s.length)===0)return"";let g,_=99999999999,v;const k=new Date(Date.now());return s.forEach((F,z)=>{const ye=new Date(F.schedules[0].startTime),q=new Date(F.schedules[0].endTime);e.hooks(q).diff(k)<_&&(_=e.hooks(q).diff(k),v=z),e.hooks(k).isAfter(ye)&&e.hooks(k).isBefore(q)&&(g=s[v].name)}),g},fe=s=>{if(b=localStorage.getItem("searchedGamesWds_casino"),b?b=b.split(","):b=[],b.indexOf(s)===-1){let g;b.unshift(s),g=b.join(","),localStorage.setItem("searchedGamesWds_casino",g)}},H=()=>{a(11,R=""),a(12,S=!0),a(17,L=!1),a(14,j=[]),a(16,y=!1),Z(y)},J=()=>{a(11,R=""),C.focus()},Z=s=>{window.postMessage({type:s===!0?"searchActive":"searchCancelled",searchStatus:s},window.location.href)},ge=()=>{Ce(u)},pe=()=>{let s=document.createElement("style");s.innerHTML=m,G.appendChild(s)},_e=()=>{let s=new URL(d),g=document.createElement("style");fetch(s.href).then(_=>_.text()).then(_=>{g.innerHTML=_,setTimeout(()=>{G.appendChild(g)},1)})};e.onMount(()=>(window.addEventListener("message",O,!1),()=>{window.removeEventListener("message",O)}));function Se(){R=this.value,a(11,R)}function be(s){e.binding_callbacks[s?"unshift":"push"](()=>{C=s,a(15,C)})}const we=()=>J(),ve=()=>H();function ke(s){e.binding_callbacks[s?"unshift":"push"](()=>{G=s,a(13,G)})}return n.$$set=s=>{"endpoint"in s&&a(0,o=s.endpoint),"datasource"in s&&a(27,i=s.datasource),"session"in s&&a(28,l=s.session),"userid"in s&&a(29,c=s.userid),"lang"in s&&a(1,u=s.lang),"clientstyling"in s&&a(2,m=s.clientstyling),"clientstylingurl"in s&&a(3,d=s.clientstylingurl),"integratedgameframedesktop"in s&&a(4,f=s.integratedgameframedesktop),"integratedgameframemobile"in s&&a(5,w=s.integratedgameframemobile),"showgamename"in s&&a(6,h=s.showgamename),"gamepagemodalurl"in s&&a(7,p=s.gamepagemodalurl),"translationurl"in s&&a(30,T=s.translationurl),"showfavorites"in s&&a(8,E=s.showfavorites),"cancelbutton"in s&&a(9,I=s.cancelbutton),"notfoundicon"in s&&a(10,P=s.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&134223875)if(R.length>=2){const s=new URL(`${o}/v1/casino/games`);s.searchParams.append("datasource",i),s.searchParams.append("expand","vendor"),s.searchParams.append("platform",e.getDevice(x)),s.searchParams.append("language",u),s.searchParams.append("pagination","offset=0,limit=30"),s.searchParams.append("filter",`name=${R}`),ce(s).then(g=>{a(14,j=g.items.map(_=>(_.isFavorite=V(_.id),_)))})}else S||U();n.$$.dirty[0]&2&&u&&ge(),n.$$.dirty[0]&1073741824&&T&&le(),n.$$.dirty[0]&805306368&&l&&c&&he(),n.$$.dirty[0]&256|n.$$.dirty[1]&1&&E&&D&&de(),n.$$.dirty[0]&8196&&m&&G&&pe(),n.$$.dirty[0]&8200&&d&&G&&_e()},[o,u,m,d,f,w,h,p,E,I,P,R,S,G,j,C,y,L,A,B,r,x,U,ie,me,H,J,i,l,c,T,D,Se,be,we,ve,ke]}class oe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,xe,je,e.safe_not_equal,{endpoint:0,datasource:27,session:28,userid:29,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,showgamename:6,gamepagemodalurl:7,translationurl:30,showfavorites:8,cancelbutton:9,notfoundicon:10},Re,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[27]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[28]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[29]}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[30]}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()}}e.create_custom_element(oe,{endpoint:{},datasource:{},session:{},userid:{},lang:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=oe;
|