@everymatrix/casino-search-nd 1.85.21 → 1.85.22
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-BiVK2l1I.js → CasinoGameThumbnailNd-CKbbtXF6.js} +949 -968
- package/components/CasinoGameThumbnailNd-DMpN2Rsr.cjs +47 -0
- package/components/{CasinoGameThumbnailNd-BBL39_WX.js → CasinoGameThumbnailNd-JoJQ3ksA.js} +1332 -1360
- package/components/{CasinoSearchNd-BHc7Wabm.js → CasinoSearchNd-C9idzt1M.js} +199 -197
- package/components/{CasinoSearchNd-BPBPNapa.js → CasinoSearchNd-CLuKlqui.js} +214 -212
- package/components/{CasinoSearchNd-aXTwTqgM.cjs → CasinoSearchNd-CO8grAZY.cjs} +1 -1
- package/es2015/casino-search-nd.cjs +1 -1
- package/es2015/casino-search-nd.js +1 -1
- package/esnext/casino-search-nd.js +1 -1
- package/package.json +1 -1
- package/components/CasinoGameThumbnailNd-Dp6UKEuf.cjs +0 -47
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var nt = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var pe = Object.getOwnPropertySymbols;
|
|
3
3
|
var rt = Object.prototype.hasOwnProperty, ot = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var Se = (a, e, t) => e in a ? nt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, _e = (a, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
rt.call(e, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
ot.call(e, t) &&
|
|
6
|
+
rt.call(e, t) && Se(a, t, e[t]);
|
|
7
|
+
if (pe)
|
|
8
|
+
for (var t of pe(e))
|
|
9
|
+
ot.call(e, t) && Se(a, t, e[t]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var we = (a, e, t) => new Promise((r, o) => {
|
|
13
13
|
var l = (c) => {
|
|
14
14
|
try {
|
|
15
15
|
i(t.next(c));
|
|
16
|
-
} catch (
|
|
17
|
-
o(
|
|
16
|
+
} catch (h) {
|
|
17
|
+
o(h);
|
|
18
18
|
}
|
|
19
19
|
}, s = (c) => {
|
|
20
20
|
try {
|
|
21
21
|
i(t.throw(c));
|
|
22
|
-
} catch (
|
|
23
|
-
o(
|
|
22
|
+
} catch (h) {
|
|
23
|
+
o(h);
|
|
24
24
|
}
|
|
25
25
|
}, i = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(l, s);
|
|
26
26
|
i((t = t.apply(a, e)).next());
|
|
27
27
|
});
|
|
28
|
-
import { a as st, $ as lt, S as it, i as ct, f as F, s as ut, c as ht, b as dt, n as
|
|
29
|
-
function
|
|
28
|
+
import { a as st, $ as lt, S as it, i as ct, f as F, s as ut, c as ht, b as dt, n as be, d as I, r as mt, e as p, g as ve, h as E, j as w, l as K, k as R, m as P, o as ye, p as ie, q as gt, t as ft, u as pt, v as H, w as W, x as ke, y as St, z as _t, A as Re, B as Ce, C as wt, D as Ne, E as u, F as bt, G as vt, H as yt, I as kt } from "./CasinoGameThumbnailNd-JoJQ3ksA.js";
|
|
29
|
+
function Rt(a, e) {
|
|
30
30
|
st(a, e);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ct(a) {
|
|
33
33
|
lt.set(a);
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const Ft = {
|
|
36
36
|
en: {
|
|
37
37
|
recentSearch: "Recent search",
|
|
38
38
|
placeHolderSearchGames: "Search for Games",
|
|
@@ -214,7 +214,7 @@ const Fe = {
|
|
|
214
214
|
notFoundText: "Please type the correct name of the game to start to play.",
|
|
215
215
|
noRecentSearches: "No recent searches yet. Search for any of our games."
|
|
216
216
|
}
|
|
217
|
-
},
|
|
217
|
+
}, Lt = (a, e) => function(...t) {
|
|
218
218
|
clearTimeout(this.debounceTimer), this.debounceTimer = setTimeout(() => {
|
|
219
219
|
a.apply(this, t);
|
|
220
220
|
}, e);
|
|
@@ -231,18 +231,18 @@ if (typeof window != "undefined") {
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
|
234
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-JoJQ3ksA.js").then((e) => e.J).then(({ default: e }) => {
|
|
235
235
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Tt(a) {
|
|
239
239
|
dt(a, "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}");
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Fe(a, e, t) {
|
|
242
242
|
const r = a.slice();
|
|
243
|
-
return r[
|
|
243
|
+
return r[67] = e[t], r;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Le(a) {
|
|
246
246
|
let e, t = (
|
|
247
247
|
/*$_*/
|
|
248
248
|
a[21]("cancel") + ""
|
|
@@ -272,51 +272,51 @@ function Te(a) {
|
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function It(a) {
|
|
276
276
|
let e, t, r, o;
|
|
277
|
-
function l(
|
|
277
|
+
function l(d, g) {
|
|
278
278
|
if (
|
|
279
279
|
/*searchActive*/
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
d[17] == !0 && /*searchValue*/
|
|
281
|
+
d[14].length < 2
|
|
282
282
|
)
|
|
283
|
-
return
|
|
283
|
+
return jt;
|
|
284
284
|
if (
|
|
285
285
|
/*searchArray*/
|
|
286
|
-
|
|
286
|
+
d[13].length != 0
|
|
287
287
|
)
|
|
288
|
-
return
|
|
288
|
+
return Gt;
|
|
289
289
|
}
|
|
290
290
|
let s = l(a), i = s && s(a), c = (
|
|
291
291
|
/*searchCancelled*/
|
|
292
|
-
a[16] === !1 &&
|
|
293
|
-
),
|
|
292
|
+
a[16] === !1 && Ge(a)
|
|
293
|
+
), h = (
|
|
294
294
|
/*searchValue*/
|
|
295
295
|
a[14].length >= 2 && /*searchArray*/
|
|
296
|
-
a[13].length == 0 &&
|
|
296
|
+
a[13].length == 0 && ze(a)
|
|
297
297
|
);
|
|
298
298
|
return {
|
|
299
299
|
c() {
|
|
300
|
-
i && i.c(), e = P(), t = R("div"), c && c.c(), r = P(),
|
|
300
|
+
i && i.c(), e = P(), t = R("div"), c && c.c(), r = P(), h && h.c(), p(t, "class", o = "SearchResultsContainer " + /*searchActive*/
|
|
301
301
|
(a[17] == !0 ? "" : "NotVisible"));
|
|
302
302
|
},
|
|
303
|
-
m(
|
|
304
|
-
i && i.m(
|
|
303
|
+
m(d, g) {
|
|
304
|
+
i && i.m(d, g), E(d, e, g), E(d, t, g), c && c.m(t, null), w(t, r), h && h.m(t, null);
|
|
305
305
|
},
|
|
306
|
-
p(
|
|
307
|
-
s === (s = l(
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
p(d, g) {
|
|
307
|
+
s === (s = l(d)) && i ? i.p(d, g) : (i && i.d(1), i = s && s(d), i && (i.c(), i.m(e.parentNode, e))), /*searchCancelled*/
|
|
308
|
+
d[16] === !1 ? c ? c.p(d, g) : (c = Ge(d), c.c(), c.m(t, r)) : c && (c.d(1), c = null), /*searchValue*/
|
|
309
|
+
d[14].length >= 2 && /*searchArray*/
|
|
310
|
+
d[13].length == 0 ? h ? h.p(d, g) : (h = ze(d), h.c(), h.m(t, null)) : h && (h.d(1), h = null), g[0] & /*searchActive*/
|
|
311
311
|
131072 && o !== (o = "SearchResultsContainer " + /*searchActive*/
|
|
312
|
-
(
|
|
312
|
+
(d[17] == !0 ? "" : "NotVisible")) && p(t, "class", o);
|
|
313
313
|
},
|
|
314
|
-
d(
|
|
315
|
-
|
|
314
|
+
d(d) {
|
|
315
|
+
d && (I(e), I(t)), i && i.d(d), c && c.d(), h && h.d();
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Et(a) {
|
|
320
320
|
let e, t = (
|
|
321
321
|
/*$_*/
|
|
322
322
|
a[21]("loading") + ""
|
|
@@ -338,7 +338,7 @@ function Lt(a) {
|
|
|
338
338
|
}
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Gt(a) {
|
|
342
342
|
let e, t = (
|
|
343
343
|
/*$_*/
|
|
344
344
|
a[21]("searchResult") + ""
|
|
@@ -360,32 +360,32 @@ function Tt(a) {
|
|
|
360
360
|
}
|
|
361
361
|
};
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function jt(a) {
|
|
364
364
|
let e, t, r = (
|
|
365
365
|
/*searchArray*/
|
|
366
|
-
a[13].length !== 0 &&
|
|
366
|
+
a[13].length !== 0 && Te(a)
|
|
367
367
|
), o = (
|
|
368
368
|
/*searchArray*/
|
|
369
|
-
a[13].length == 0 &&
|
|
369
|
+
a[13].length == 0 && Ie(a)
|
|
370
370
|
);
|
|
371
371
|
return {
|
|
372
372
|
c() {
|
|
373
|
-
r && r.c(), e = P(), o && o.c(), t =
|
|
373
|
+
r && r.c(), e = P(), o && o.c(), t = Ne();
|
|
374
374
|
},
|
|
375
375
|
m(l, s) {
|
|
376
376
|
r && r.m(l, s), E(l, e, s), o && o.m(l, s), E(l, t, s);
|
|
377
377
|
},
|
|
378
378
|
p(l, s) {
|
|
379
379
|
/*searchArray*/
|
|
380
|
-
l[13].length !== 0 ? r ? r.p(l, s) : (r =
|
|
381
|
-
l[13].length == 0 ? o ? o.p(l, s) : (o =
|
|
380
|
+
l[13].length !== 0 ? r ? r.p(l, s) : (r = Te(l), r.c(), r.m(e.parentNode, e)) : r && (r.d(1), r = null), /*searchArray*/
|
|
381
|
+
l[13].length == 0 ? o ? o.p(l, s) : (o = Ie(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
|
|
382
382
|
},
|
|
383
383
|
d(l) {
|
|
384
384
|
l && (I(e), I(t)), r && r.d(l), o && o.d(l);
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function Te(a) {
|
|
389
389
|
let e, t = (
|
|
390
390
|
/*$_*/
|
|
391
391
|
a[21]("recentSearch") + ""
|
|
@@ -407,27 +407,27 @@ function Ie(a) {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Ie(a) {
|
|
411
411
|
let e, t, r, o = (
|
|
412
412
|
/*$_*/
|
|
413
413
|
a[21]("noRecentSearches") + ""
|
|
414
414
|
), l, s, i = (
|
|
415
415
|
/*notfoundicon*/
|
|
416
|
-
a[11] === "true" &&
|
|
416
|
+
a[11] === "true" && Ee()
|
|
417
417
|
);
|
|
418
418
|
return {
|
|
419
419
|
c() {
|
|
420
420
|
e = R("div"), i && i.c(), t = P(), r = R("p"), l = W(o), p(r, "class", "SearchMessage"), p(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
421
421
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
422
422
|
},
|
|
423
|
-
m(c,
|
|
424
|
-
E(c, e,
|
|
423
|
+
m(c, h) {
|
|
424
|
+
E(c, e, h), i && i.m(e, null), w(e, t), w(e, r), w(r, l);
|
|
425
425
|
},
|
|
426
|
-
p(c,
|
|
426
|
+
p(c, h) {
|
|
427
427
|
/*notfoundicon*/
|
|
428
|
-
c[11] === "true" ? i || (i =
|
|
428
|
+
c[11] === "true" ? i || (i = Ee(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), h[0] & /*$_*/
|
|
429
429
|
2097152 && o !== (o = /*$_*/
|
|
430
|
-
c[21]("noRecentSearches") + "") && H(l, o),
|
|
430
|
+
c[21]("noRecentSearches") + "") && H(l, o), h[0] & /*notfoundicon*/
|
|
431
431
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
432
432
|
(c[11] == "true" ? "WithIcon" : "")) && p(e, "class", s);
|
|
433
433
|
},
|
|
@@ -436,7 +436,7 @@ function Ee(a) {
|
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Ee(a) {
|
|
440
440
|
let e;
|
|
441
441
|
return {
|
|
442
442
|
c() {
|
|
@@ -450,18 +450,18 @@ function Ge(a) {
|
|
|
450
450
|
}
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
let e, t =
|
|
453
|
+
function Ge(a) {
|
|
454
|
+
let e, t = Ce(
|
|
455
455
|
/*searchArray*/
|
|
456
456
|
a[13]
|
|
457
457
|
), r = [];
|
|
458
458
|
for (let o = 0; o < t.length; o += 1)
|
|
459
|
-
r[o] =
|
|
459
|
+
r[o] = je(Fe(a, t, o));
|
|
460
460
|
return {
|
|
461
461
|
c() {
|
|
462
462
|
for (let o = 0; o < r.length; o += 1)
|
|
463
463
|
r[o].c();
|
|
464
|
-
e =
|
|
464
|
+
e = Ne();
|
|
465
465
|
},
|
|
466
466
|
m(o, l) {
|
|
467
467
|
for (let s = 0; s < r.length; s += 1)
|
|
@@ -471,14 +471,14 @@ function je(a) {
|
|
|
471
471
|
p(o, l) {
|
|
472
472
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, getRequiredIcon, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl, mbsource*/
|
|
473
473
|
77079551) {
|
|
474
|
-
t =
|
|
474
|
+
t = Ce(
|
|
475
475
|
/*searchArray*/
|
|
476
476
|
o[13]
|
|
477
477
|
);
|
|
478
478
|
let s;
|
|
479
479
|
for (s = 0; s < t.length; s += 1) {
|
|
480
|
-
const i =
|
|
481
|
-
r[s] ? r[s].p(i, l) : (r[s] =
|
|
480
|
+
const i = Fe(o, t, s);
|
|
481
|
+
r[s] ? r[s].p(i, l) : (r[s] = je(i), r[s].c(), r[s].m(e.parentNode, e));
|
|
482
482
|
}
|
|
483
483
|
for (; s < r.length; s += 1)
|
|
484
484
|
r[s].d(1);
|
|
@@ -486,12 +486,12 @@ function je(a) {
|
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
d(o) {
|
|
489
|
-
o && I(e),
|
|
489
|
+
o && I(e), wt(r, o);
|
|
490
490
|
}
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
|
-
function
|
|
494
|
-
let e, t, r, o, l, s, i, c,
|
|
493
|
+
function je(a) {
|
|
494
|
+
let e, t, r, o, l, s, i, c, h, d, g, y, T;
|
|
495
495
|
return {
|
|
496
496
|
c() {
|
|
497
497
|
var m, S;
|
|
@@ -521,32 +521,32 @@ function ze(a) {
|
|
|
521
521
|
/*lang*/
|
|
522
522
|
a[1]
|
|
523
523
|
), u(e, "gamethumbnail", t = /*game*/
|
|
524
|
-
a[
|
|
524
|
+
a[67].thumbnail), u(e, "icon", r = /*getRequiredIcon*/
|
|
525
525
|
a[23](
|
|
526
526
|
/*game*/
|
|
527
|
-
(m = a[
|
|
527
|
+
(m = a[67]) == null ? void 0 : m.icons
|
|
528
528
|
)), u(e, "gamename", o = /*game*/
|
|
529
|
-
a[
|
|
530
|
-
a[
|
|
531
|
-
a[
|
|
532
|
-
a[
|
|
533
|
-
((S = a[
|
|
529
|
+
a[67].name), u(e, "gamevendor", l = /*game*/
|
|
530
|
+
a[67].vendor.name), u(e, "gameLaunchUrl", s = /*game*/
|
|
531
|
+
a[67].launchUrl), u(e, "gameisnew", i = /*game*/
|
|
532
|
+
a[67].isNew), u(e, "gametag", c = /*game*/
|
|
533
|
+
((S = a[67].advancedTags) == null ? void 0 : S.length) > 0 && /*addGameTag*/
|
|
534
534
|
a[26](
|
|
535
535
|
/*game*/
|
|
536
|
-
a[
|
|
537
|
-
)), u(e, "gamecellsize",
|
|
538
|
-
a[
|
|
539
|
-
a[
|
|
536
|
+
a[67].advancedTags
|
|
537
|
+
)), u(e, "gamecellsize", h = /*game*/
|
|
538
|
+
a[67].cellSize), u(e, "gameid", d = /*game*/
|
|
539
|
+
a[67].id), u(
|
|
540
540
|
e,
|
|
541
541
|
"showgamename",
|
|
542
542
|
/*showgamename*/
|
|
543
543
|
a[7]
|
|
544
544
|
), u(e, "gamefunmode", g = /*game*/
|
|
545
|
-
a[
|
|
546
|
-
a[
|
|
547
|
-
a[
|
|
545
|
+
a[67].hasFunMode), u(e, "gamefavorite", y = /*game*/
|
|
546
|
+
a[67].isFavorite), u(e, "livelobbyendpoint", T = /*game*/
|
|
547
|
+
a[67].details ? (
|
|
548
548
|
/*game*/
|
|
549
|
-
a[
|
|
549
|
+
a[67].launchUrl
|
|
550
550
|
) : ""), u(
|
|
551
551
|
e,
|
|
552
552
|
"integratedgameframedesktop",
|
|
@@ -583,7 +583,7 @@ function ze(a) {
|
|
|
583
583
|
E(m, e, S);
|
|
584
584
|
},
|
|
585
585
|
p(m, S) {
|
|
586
|
-
var
|
|
586
|
+
var G, D;
|
|
587
587
|
S[0] & /*endpoint*/
|
|
588
588
|
1 && u(
|
|
589
589
|
e,
|
|
@@ -616,30 +616,30 @@ function ze(a) {
|
|
|
616
616
|
m[1]
|
|
617
617
|
), S[0] & /*searchArray*/
|
|
618
618
|
8192 && t !== (t = /*game*/
|
|
619
|
-
m[
|
|
619
|
+
m[67].thumbnail) && u(e, "gamethumbnail", t), S[0] & /*searchArray*/
|
|
620
620
|
8192 && r !== (r = /*getRequiredIcon*/
|
|
621
621
|
m[23](
|
|
622
622
|
/*game*/
|
|
623
|
-
(
|
|
623
|
+
(G = m[67]) == null ? void 0 : G.icons
|
|
624
624
|
)) && u(e, "icon", r), S[0] & /*searchArray*/
|
|
625
625
|
8192 && o !== (o = /*game*/
|
|
626
|
-
m[
|
|
626
|
+
m[67].name) && u(e, "gamename", o), S[0] & /*searchArray*/
|
|
627
627
|
8192 && l !== (l = /*game*/
|
|
628
|
-
m[
|
|
628
|
+
m[67].vendor.name) && u(e, "gamevendor", l), S[0] & /*searchArray*/
|
|
629
629
|
8192 && s !== (s = /*game*/
|
|
630
|
-
m[
|
|
630
|
+
m[67].launchUrl) && u(e, "gameLaunchUrl", s), S[0] & /*searchArray*/
|
|
631
631
|
8192 && i !== (i = /*game*/
|
|
632
|
-
m[
|
|
632
|
+
m[67].isNew) && u(e, "gameisnew", i), S[0] & /*searchArray*/
|
|
633
633
|
8192 && c !== (c = /*game*/
|
|
634
|
-
((D = m[
|
|
634
|
+
((D = m[67].advancedTags) == null ? void 0 : D.length) > 0 && /*addGameTag*/
|
|
635
635
|
m[26](
|
|
636
636
|
/*game*/
|
|
637
|
-
m[
|
|
637
|
+
m[67].advancedTags
|
|
638
638
|
)) && u(e, "gametag", c), S[0] & /*searchArray*/
|
|
639
|
-
8192 && d !== (d = /*game*/
|
|
640
|
-
m[65].cellSize) && u(e, "gamecellsize", d), S[0] & /*searchArray*/
|
|
641
639
|
8192 && h !== (h = /*game*/
|
|
642
|
-
m[
|
|
640
|
+
m[67].cellSize) && u(e, "gamecellsize", h), S[0] & /*searchArray*/
|
|
641
|
+
8192 && d !== (d = /*game*/
|
|
642
|
+
m[67].id) && u(e, "gameid", d), S[0] & /*showgamename*/
|
|
643
643
|
128 && u(
|
|
644
644
|
e,
|
|
645
645
|
"showgamename",
|
|
@@ -647,13 +647,13 @@ function ze(a) {
|
|
|
647
647
|
m[7]
|
|
648
648
|
), S[0] & /*searchArray*/
|
|
649
649
|
8192 && g !== (g = /*game*/
|
|
650
|
-
m[
|
|
650
|
+
m[67].hasFunMode) && u(e, "gamefunmode", g), S[0] & /*searchArray*/
|
|
651
651
|
8192 && y !== (y = /*game*/
|
|
652
|
-
m[
|
|
652
|
+
m[67].isFavorite) && u(e, "gamefavorite", y), S[0] & /*searchArray*/
|
|
653
653
|
8192 && T !== (T = /*game*/
|
|
654
|
-
m[
|
|
654
|
+
m[67].details ? (
|
|
655
655
|
/*game*/
|
|
656
|
-
m[
|
|
656
|
+
m[67].launchUrl
|
|
657
657
|
) : "") && u(e, "livelobbyendpoint", T), S[0] & /*integratedgameframedesktop*/
|
|
658
658
|
32 && u(
|
|
659
659
|
e,
|
|
@@ -697,41 +697,41 @@ function ze(a) {
|
|
|
697
697
|
}
|
|
698
698
|
};
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function ze(a) {
|
|
701
701
|
let e, t, r, o = (
|
|
702
702
|
/*$_*/
|
|
703
703
|
a[21]("notFound") + ""
|
|
704
704
|
), l, s, i, c = (
|
|
705
705
|
/*$_*/
|
|
706
706
|
a[21]("notFoundText") + ""
|
|
707
|
-
),
|
|
707
|
+
), h, d, g = (
|
|
708
708
|
/*notfoundicon*/
|
|
709
|
-
a[11] === "true" &&
|
|
709
|
+
a[11] === "true" && De()
|
|
710
710
|
);
|
|
711
711
|
return {
|
|
712
712
|
c() {
|
|
713
|
-
e = R("div"), g && g.c(), t = P(), r = R("p"), l = W(o), s = P(), i = R("p"),
|
|
713
|
+
e = R("div"), g && g.c(), t = P(), r = R("p"), l = W(o), s = P(), i = R("p"), h = W(c), p(r, "class", "SearchMessage"), p(e, "class", d = "ResultsContainerError " + /*notfoundicon*/
|
|
714
714
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
715
715
|
},
|
|
716
716
|
m(y, T) {
|
|
717
|
-
E(y, e, T), g && g.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i,
|
|
717
|
+
E(y, e, T), g && g.m(e, null), w(e, t), w(e, r), w(r, l), w(e, s), w(e, i), w(i, h);
|
|
718
718
|
},
|
|
719
719
|
p(y, T) {
|
|
720
720
|
/*notfoundicon*/
|
|
721
|
-
y[11] === "true" ? g || (g =
|
|
721
|
+
y[11] === "true" ? g || (g = De(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), T[0] & /*$_*/
|
|
722
722
|
2097152 && o !== (o = /*$_*/
|
|
723
723
|
y[21]("notFound") + "") && H(l, o), T[0] & /*$_*/
|
|
724
724
|
2097152 && c !== (c = /*$_*/
|
|
725
|
-
y[21]("notFoundText") + "") && H(
|
|
726
|
-
2048 &&
|
|
727
|
-
(y[11] == "true" ? "WithIcon" : "")) && p(e, "class",
|
|
725
|
+
y[21]("notFoundText") + "") && H(h, c), T[0] & /*notfoundicon*/
|
|
726
|
+
2048 && d !== (d = "ResultsContainerError " + /*notfoundicon*/
|
|
727
|
+
(y[11] == "true" ? "WithIcon" : "")) && p(e, "class", d);
|
|
728
728
|
},
|
|
729
729
|
d(y) {
|
|
730
730
|
y && I(e), g && g.d();
|
|
731
731
|
}
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function De(a) {
|
|
735
735
|
let e;
|
|
736
736
|
return {
|
|
737
737
|
c() {
|
|
@@ -745,36 +745,36 @@ function Ne(a) {
|
|
|
745
745
|
}
|
|
746
746
|
};
|
|
747
747
|
}
|
|
748
|
-
function
|
|
749
|
-
let e, t, r, o, l, s, i, c,
|
|
748
|
+
function zt(a) {
|
|
749
|
+
let e, t, r, o, l, s, i, c, h, d, g, y, T, m, S, G, D, U, V, q, L = (
|
|
750
750
|
/*cancelbutton*/
|
|
751
|
-
a[10] === "true" &&
|
|
751
|
+
a[10] === "true" && Le(a)
|
|
752
752
|
);
|
|
753
753
|
function J(_, C) {
|
|
754
754
|
return (
|
|
755
755
|
/*isLoading*/
|
|
756
|
-
_[18] ?
|
|
756
|
+
_[18] ? Et : It
|
|
757
757
|
);
|
|
758
758
|
}
|
|
759
|
-
let Z = J(a),
|
|
759
|
+
let Z = J(a), j = Z(a);
|
|
760
760
|
return {
|
|
761
761
|
c() {
|
|
762
|
-
e = R("div"), t = R("div"), r = R("div"), o = R("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 = P(), s = R("input"), c = P(),
|
|
763
|
-
a[21]("placeHolderSearchGames")), p(s, "maxlength",
|
|
762
|
+
e = R("div"), t = R("div"), r = R("div"), o = R("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 = P(), s = R("input"), c = P(), h = R("span"), d = ye("svg"), g = ye("path"), T = P(), L && L.c(), S = P(), G = R("div"), U = P(), j.c(), p(o, "class", "SearchIcon"), p(s, "class", "SearchInput"), p(s, "type", "search"), p(s, "placeholder", i = /*$_*/
|
|
763
|
+
a[21]("placeHolderSearchGames")), p(s, "maxlength", Pe), p(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), p(g, "stroke", "#717171"), p(g, "stroke-width", "2"), p(g, "stroke-linecap", "round"), p(g, "stroke-linejoin", "round"), p(d, "width", "11"), p(d, "height", "11"), p(d, "fill", "none"), p(d, "xmlns", "http://www.w3.org/2000/svg"), p(h, "class", y = "SearchClearButton " + /*cancelbutton*/
|
|
764
764
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
765
765
|
(a[14].length != 0 ? "" : "NotVisible")), p(r, "class", m = "Search " + /*searchCancelled*/
|
|
766
|
-
(a[16] ? "" : "SearchAnimation")), p(t, "class", "SearchWrap"), p(
|
|
767
|
-
a[10] != "true" ? "OverlayCancel" : ""), p(e, "class", (
|
|
766
|
+
(a[16] ? "" : "SearchAnimation")), p(t, "class", "SearchWrap"), p(G, "class", D = /*cancelbutton*/
|
|
767
|
+
a[10] != "true" ? "OverlayCancel" : ""), p(e, "class", (ie(
|
|
768
768
|
/*userAgent*/
|
|
769
769
|
a[22]
|
|
770
770
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
|
771
771
|
},
|
|
772
772
|
m(_, C) {
|
|
773
|
-
E(_, e, C), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s),
|
|
773
|
+
E(_, e, C), w(e, t), w(t, r), w(r, o), w(r, l), w(r, s), ve(
|
|
774
774
|
s,
|
|
775
775
|
/*searchValue*/
|
|
776
776
|
a[14]
|
|
777
|
-
), a[39](s), w(r, c), w(r,
|
|
777
|
+
), a[39](s), w(r, c), w(r, h), w(h, d), w(d, g), w(r, T), L && L.m(r, null), w(e, S), w(e, G), w(e, U), j.m(e, null), a[42](e), V || (q = [
|
|
778
778
|
K(
|
|
779
779
|
s,
|
|
780
780
|
"input",
|
|
@@ -794,13 +794,13 @@ function Et(a) {
|
|
|
794
794
|
a[29]
|
|
795
795
|
),
|
|
796
796
|
K(
|
|
797
|
-
|
|
797
|
+
h,
|
|
798
798
|
"click",
|
|
799
799
|
/*click_handler*/
|
|
800
800
|
a[40]
|
|
801
801
|
),
|
|
802
802
|
K(
|
|
803
|
-
|
|
803
|
+
G,
|
|
804
804
|
"click",
|
|
805
805
|
/*handleOverlay*/
|
|
806
806
|
a[25]
|
|
@@ -812,62 +812,62 @@ function Et(a) {
|
|
|
812
812
|
2097152 && i !== (i = /*$_*/
|
|
813
813
|
_[21]("placeHolderSearchGames")) && p(s, "placeholder", i), C[0] & /*searchValue*/
|
|
814
814
|
16384 && s.value !== /*searchValue*/
|
|
815
|
-
_[14] &&
|
|
815
|
+
_[14] && ve(
|
|
816
816
|
s,
|
|
817
817
|
/*searchValue*/
|
|
818
818
|
_[14]
|
|
819
819
|
), C[0] & /*cancelbutton, searchValue*/
|
|
820
820
|
17408 && y !== (y = "SearchClearButton " + /*cancelbutton*/
|
|
821
821
|
(_[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
822
|
-
(_[14].length != 0 ? "" : "NotVisible")) && p(
|
|
823
|
-
_[10] === "true" ? L ? L.p(_, C) : (L =
|
|
822
|
+
(_[14].length != 0 ? "" : "NotVisible")) && p(h, "class", y), /*cancelbutton*/
|
|
823
|
+
_[10] === "true" ? L ? L.p(_, C) : (L = Le(_), L.c(), L.m(r, null)) : L && (L.d(1), L = null), C[0] & /*searchCancelled*/
|
|
824
824
|
65536 && m !== (m = "Search " + /*searchCancelled*/
|
|
825
825
|
(_[16] ? "" : "SearchAnimation")) && p(r, "class", m), C[0] & /*cancelbutton*/
|
|
826
826
|
1024 && D !== (D = /*cancelbutton*/
|
|
827
|
-
_[10] != "true" ? "OverlayCancel" : "") && p(
|
|
827
|
+
_[10] != "true" ? "OverlayCancel" : "") && p(G, "class", D), Z === (Z = J(_)) && j ? j.p(_, C) : (j.d(1), j = Z(_), j && (j.c(), j.m(e, null)));
|
|
828
828
|
},
|
|
829
|
-
i:
|
|
830
|
-
o:
|
|
829
|
+
i: be,
|
|
830
|
+
o: be,
|
|
831
831
|
d(_) {
|
|
832
|
-
_ && I(e), a[39](null), L && L.d(),
|
|
832
|
+
_ && I(e), a[39](null), L && L.d(), j.d(), a[42](null), V = !1, mt(q);
|
|
833
833
|
}
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
let
|
|
837
|
-
function
|
|
836
|
+
let Pe = 50;
|
|
837
|
+
function Dt(a, e, t) {
|
|
838
838
|
let r;
|
|
839
|
-
gt(a,
|
|
840
|
-
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource:
|
|
839
|
+
gt(a, bt, (n) => t(21, r = n));
|
|
840
|
+
let { endpoint: o = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: h } = e, { clientstyling: d = "" } = e, { clientstylingurl: g = "" } = e, { integratedgameframedesktop: y = "false" } = e, { integratedgameframemobile: T = "false" } = e, { showgamename: m = "" } = e, { gamepagemodalurl: S = "true" } = e, { translationurl: G = "" } = e, { showfavorites: D = "" } = e, { cancelbutton: U = "true" } = e, { notfoundicon: V = "false" } = e, { controlchannel: q = "casino-search" } = e, { allowedorigins: L = window.location.origin } = e, { requiredicon: J = "false" } = e;
|
|
841
841
|
const Z = () => (L || "").split(",").map((n) => n.trim()).filter(Boolean);
|
|
842
|
-
let
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
842
|
+
let j = window.navigator.userAgent, _ = [], C = [], ne = {}, M = "", O, $ = !0, A = !1, N = !1, B, Me, ee = !1, te, ae, ce = [];
|
|
843
|
+
const re = (n) => {
|
|
844
|
+
Object.keys(n).forEach((f) => {
|
|
845
|
+
Rt(f, n[f]);
|
|
846
|
+
});
|
|
847
|
+
}, Ae = () => {
|
|
848
|
+
fetch(G).then((f) => f.json()).then((f) => {
|
|
849
|
+
re(f);
|
|
848
850
|
}).catch((f) => {
|
|
849
851
|
console.log(f);
|
|
850
852
|
});
|
|
851
853
|
};
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
});
|
|
855
|
-
const ce = (n) => {
|
|
854
|
+
re(Ft);
|
|
855
|
+
const ue = (n) => {
|
|
856
856
|
var f;
|
|
857
857
|
n.data && n.data.type == "SearchedItemClicked" && Ze(n.data.gameId), n.data.type == "UserSessionID" && (t(19, te = n.data.session), t(20, ae = n.data.userid), t(37, ee = !0)), n.data.type == "CategoryChange" && X();
|
|
858
858
|
try {
|
|
859
859
|
const b = n.origin === window.location.origin, v = Z();
|
|
860
|
-
if (!(b || v.length > 0 && v.includes(n.origin)) || !n.data || n.data.channel !==
|
|
860
|
+
if (!(b || v.length > 0 && v.includes(n.origin)) || !n.data || n.data.channel !== q)
|
|
861
861
|
return;
|
|
862
862
|
switch (n.data.type) {
|
|
863
863
|
case "OpenSearch":
|
|
864
|
-
|
|
864
|
+
se();
|
|
865
865
|
break;
|
|
866
866
|
case "CloseSearch":
|
|
867
|
-
|
|
867
|
+
he();
|
|
868
868
|
break;
|
|
869
869
|
case "ToggleSearch":
|
|
870
|
-
|
|
870
|
+
qe();
|
|
871
871
|
break;
|
|
872
872
|
case "SetSearchQuery":
|
|
873
873
|
Oe(String((f = n.data.value) != null ? f : ""));
|
|
@@ -875,7 +875,7 @@ function Gt(a, e, t) {
|
|
|
875
875
|
}
|
|
876
876
|
} catch (b) {
|
|
877
877
|
}
|
|
878
|
-
},
|
|
878
|
+
}, Be = (n) => J !== "true" ? void 0 : Object.values(n != null ? n : {}).pop(), oe = () => {
|
|
879
879
|
if (t(16, $ = !1), t(17, A = !0), o && l && c && M.length < 2) {
|
|
880
880
|
t(13, _ = []);
|
|
881
881
|
let n = localStorage.getItem("searchedGamesWds_casino"), f = [];
|
|
@@ -884,30 +884,30 @@ function Gt(a, e, t) {
|
|
|
884
884
|
if (k > 0) {
|
|
885
885
|
for (v = 0; v < k; v++) {
|
|
886
886
|
let z = new URL(`${o}/v1/casino/games/${f[v]}`);
|
|
887
|
-
z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform",
|
|
887
|
+
z.searchParams.append("language", c), z.searchParams.append("datasource", l), z.searchParams.append("platform", ie(j)), b.push(We(z, f[v]));
|
|
888
888
|
}
|
|
889
889
|
Promise.all(b).then((z) => {
|
|
890
890
|
z = z.filter(function(x) {
|
|
891
891
|
return !!x;
|
|
892
|
-
}), t(13, _ = z.map((x) => (x.isFavorite =
|
|
892
|
+
}), t(13, _ = z.map((x) => (x.isFavorite = de(x.id), x))), _.length ? Q("searchSuccess", "SearchWidget") : Q("searchFail", "SearchWidget");
|
|
893
893
|
}).catch((z) => {
|
|
894
894
|
Q("searchError", "SearchWidget");
|
|
895
895
|
});
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
|
-
|
|
898
|
+
ge(A), Q("searchAttempt", "SearchWidget"), Q("SearchInitialized", "SearchWidget");
|
|
899
899
|
};
|
|
900
|
-
function
|
|
901
|
-
A || (
|
|
900
|
+
function se() {
|
|
901
|
+
A || (oe(), requestAnimationFrame(() => O == null ? void 0 : O.focus()), Y({ type: "SearchOpen" }));
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function he() {
|
|
904
904
|
A && (X(), Y({ type: "SearchClose" }));
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
A ?
|
|
906
|
+
function qe() {
|
|
907
|
+
A ? he() : se();
|
|
908
908
|
}
|
|
909
909
|
function Oe(n) {
|
|
910
|
-
t(14, M = (n != null ? n : "").slice(0,
|
|
910
|
+
t(14, M = (n != null ? n : "").slice(0, Pe)), A || se(), fe();
|
|
911
911
|
}
|
|
912
912
|
const Q = (n, f) => {
|
|
913
913
|
typeof gtag == "function" && gtag("event", n, { context: f });
|
|
@@ -949,18 +949,18 @@ function Gt(a, e, t) {
|
|
|
949
949
|
headers: { "X-SessionID": te }
|
|
950
950
|
};
|
|
951
951
|
fetch(n.href, f).then((b) => b.json()).then((b) => {
|
|
952
|
-
t(18, N = !1),
|
|
952
|
+
t(18, N = !1), ce = b.items.map((v) => v.id);
|
|
953
953
|
});
|
|
954
954
|
}, Ve = () => {
|
|
955
955
|
t(37, ee = !0), t(19, te = s), t(20, ae = i);
|
|
956
|
-
},
|
|
956
|
+
}, de = (n) => ce.findIndex((f) => f == n) !== -1, Je = (n) => {
|
|
957
957
|
if ((n == null ? void 0 : n.length) === 0)
|
|
958
958
|
return "";
|
|
959
959
|
let f, b = 99999999999, v;
|
|
960
960
|
const k = new Date(Date.now());
|
|
961
961
|
return n.forEach((z, x) => {
|
|
962
|
-
const at = new Date(z.schedules[0].startTime),
|
|
963
|
-
|
|
962
|
+
const at = new Date(z.schedules[0].startTime), le = new Date(z.schedules[0].endTime);
|
|
963
|
+
ke(new Date(le), new Date(k)) < b && (b = ke(new Date(le), new Date(k)), v = x), St(new Date(k), new Date(at)) && _t(new Date(k), new Date(le)) && (f = n[v].name);
|
|
964
964
|
}), f;
|
|
965
965
|
}, Ze = (n) => {
|
|
966
966
|
if (C = localStorage.getItem("searchedGamesWds_casino"), C ? C = C.split(",") : C = [], C.indexOf(n) === -1) {
|
|
@@ -968,10 +968,10 @@ function Gt(a, e, t) {
|
|
|
968
968
|
C.unshift(n), f = C.join(","), localStorage.setItem("searchedGamesWds_casino", f);
|
|
969
969
|
}
|
|
970
970
|
}, X = () => {
|
|
971
|
-
t(14, M = ""), t(16, $ = !0), t(18, N = !1), t(13, _ = []), t(17, A = !1),
|
|
972
|
-
},
|
|
971
|
+
t(14, M = ""), t(16, $ = !0), t(18, N = !1), t(13, _ = []), t(17, A = !1), ge(A);
|
|
972
|
+
}, me = () => {
|
|
973
973
|
t(14, M = ""), O.focus();
|
|
974
|
-
},
|
|
974
|
+
}, ge = (n) => {
|
|
975
975
|
window.postMessage(
|
|
976
976
|
{
|
|
977
977
|
type: n === !0 ? "searchActive" : "searchCancelled",
|
|
@@ -984,18 +984,18 @@ function Gt(a, e, t) {
|
|
|
984
984
|
};
|
|
985
985
|
function Y(n) {
|
|
986
986
|
try {
|
|
987
|
-
const f =
|
|
987
|
+
const f = _e({ channel: q }, n);
|
|
988
988
|
window.postMessage(f, window.location.href);
|
|
989
989
|
} catch (f) {
|
|
990
990
|
}
|
|
991
991
|
}
|
|
992
992
|
const Ye = () => {
|
|
993
|
-
|
|
994
|
-
},
|
|
993
|
+
Ct(c);
|
|
994
|
+
}, fe = () => we(this, null, function* () {
|
|
995
995
|
if (M.length >= 2) {
|
|
996
996
|
const n = new URL(`${o}/v1/casino/games`);
|
|
997
|
-
n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform",
|
|
998
|
-
t(13, _ = f.items.map((b) => (b.isFavorite =
|
|
997
|
+
n.searchParams.append("datasource", l), n.searchParams.append("expand", "vendor"), n.searchParams.append("platform", ie(j)), n.searchParams.append("language", c), n.searchParams.append("pagination", "offset=0,limit=30"), n.searchParams.append("filter", `name=${M}`), He(n).then((f) => {
|
|
998
|
+
t(13, _ = f.items.map((b) => (b.isFavorite = de(b.id), b)));
|
|
999
999
|
try {
|
|
1000
1000
|
Y({
|
|
1001
1001
|
type: "SearchResults",
|
|
@@ -1005,42 +1005,44 @@ function Gt(a, e, t) {
|
|
|
1005
1005
|
}
|
|
1006
1006
|
});
|
|
1007
1007
|
} else
|
|
1008
|
-
$ ||
|
|
1009
|
-
}), Ke =
|
|
1010
|
-
ft(() => (window.addEventListener("message",
|
|
1011
|
-
window.removeEventListener("message",
|
|
1008
|
+
$ || oe();
|
|
1009
|
+
}), Ke = Lt(fe, 500);
|
|
1010
|
+
ft(() => (window.addEventListener("message", ue, !1), () => {
|
|
1011
|
+
window.removeEventListener("message", ue);
|
|
1012
1012
|
}));
|
|
1013
1013
|
function Qe() {
|
|
1014
1014
|
M = this.value, t(14, M);
|
|
1015
1015
|
}
|
|
1016
1016
|
function Xe(n) {
|
|
1017
|
-
|
|
1017
|
+
Re[n ? "unshift" : "push"](() => {
|
|
1018
1018
|
O = n, t(15, O);
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
|
-
const $e = () =>
|
|
1021
|
+
const $e = () => me(), et = () => X();
|
|
1022
1022
|
function tt(n) {
|
|
1023
|
-
|
|
1024
|
-
|
|
1023
|
+
Re[n ? "unshift" : "push"](() => {
|
|
1024
|
+
B = n, t(12, B);
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
return a.$$set = (n) => {
|
|
1028
|
-
"endpoint" in n && t(0, o = n.endpoint), "datasource" in n && t(30, l = n.datasource), "session" in n && t(31, s = n.session), "userid" in n && t(32, i = n.userid), "lang" in n && t(1, c = n.lang), "mbsource" in n && t(2,
|
|
1028
|
+
"endpoint" in n && t(0, o = n.endpoint), "datasource" in n && t(30, l = n.datasource), "session" in n && t(31, s = n.session), "userid" in n && t(32, i = n.userid), "lang" in n && t(1, c = n.lang), "mbsource" in n && t(2, h = n.mbsource), "clientstyling" in n && t(3, d = n.clientstyling), "clientstylingurl" in n && t(4, g = n.clientstylingurl), "integratedgameframedesktop" in n && t(5, y = n.integratedgameframedesktop), "integratedgameframemobile" in n && t(6, T = n.integratedgameframemobile), "showgamename" in n && t(7, m = n.showgamename), "gamepagemodalurl" in n && t(8, S = n.gamepagemodalurl), "translationurl" in n && t(33, G = n.translationurl), "showfavorites" in n && t(9, D = n.showfavorites), "cancelbutton" in n && t(10, U = n.cancelbutton), "notfoundicon" in n && t(11, V = n.notfoundicon), "controlchannel" in n && t(34, q = n.controlchannel), "allowedorigins" in n && t(35, L = n.allowedorigins), "requiredicon" in n && t(36, J = n.requiredicon);
|
|
1029
1029
|
}, a.$$.update = () => {
|
|
1030
1030
|
a.$$.dirty[0] & /*lang*/
|
|
1031
1031
|
2 && c && Ye(), a.$$.dirty[1] & /*translationurl*/
|
|
1032
|
-
4 &&
|
|
1032
|
+
4 && G && Ae(), a.$$.dirty[1] & /*session, userid*/
|
|
1033
1033
|
3 && s && i && Ve(), a.$$.dirty[0] & /*showfavorites*/
|
|
1034
1034
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
1035
1035
|
64 && D && ee && Ue(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
1036
|
-
4104 &&
|
|
1037
|
-
4112 && g &&
|
|
1038
|
-
4100 &&
|
|
1036
|
+
4104 && d && B && vt(B, d), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
1037
|
+
4112 && g && B && yt(B, g), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
1038
|
+
4100 && h && B && kt(B, `${h}.Style`), a.$$.dirty[0] & /*mbsource*/
|
|
1039
|
+
4 | a.$$.dirty[1] & /*translationurl*/
|
|
1040
|
+
4 && h && !G && pt(`${h}.Translation`, Me, re);
|
|
1039
1041
|
}, [
|
|
1040
1042
|
o,
|
|
1041
1043
|
c,
|
|
1042
|
-
d,
|
|
1043
1044
|
h,
|
|
1045
|
+
d,
|
|
1044
1046
|
g,
|
|
1045
1047
|
y,
|
|
1046
1048
|
T,
|
|
@@ -1049,7 +1051,7 @@ function Gt(a, e, t) {
|
|
|
1049
1051
|
D,
|
|
1050
1052
|
U,
|
|
1051
1053
|
V,
|
|
1052
|
-
|
|
1054
|
+
B,
|
|
1053
1055
|
_,
|
|
1054
1056
|
M,
|
|
1055
1057
|
O,
|
|
@@ -1059,19 +1061,19 @@ function Gt(a, e, t) {
|
|
|
1059
1061
|
te,
|
|
1060
1062
|
ae,
|
|
1061
1063
|
r,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1064
|
+
j,
|
|
1065
|
+
Be,
|
|
1066
|
+
oe,
|
|
1065
1067
|
xe,
|
|
1066
1068
|
Je,
|
|
1067
1069
|
X,
|
|
1068
|
-
|
|
1070
|
+
me,
|
|
1069
1071
|
Ke,
|
|
1070
1072
|
l,
|
|
1071
1073
|
s,
|
|
1072
1074
|
i,
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
+
G,
|
|
1076
|
+
q,
|
|
1075
1077
|
L,
|
|
1076
1078
|
J,
|
|
1077
1079
|
ee,
|
|
@@ -1082,13 +1084,13 @@ function Gt(a, e, t) {
|
|
|
1082
1084
|
tt
|
|
1083
1085
|
];
|
|
1084
1086
|
}
|
|
1085
|
-
class
|
|
1087
|
+
class Nt extends it {
|
|
1086
1088
|
constructor(e) {
|
|
1087
1089
|
super(), ct(
|
|
1088
1090
|
this,
|
|
1089
1091
|
e,
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
+
Dt,
|
|
1093
|
+
zt,
|
|
1092
1094
|
ut,
|
|
1093
1095
|
{
|
|
1094
1096
|
endpoint: 0,
|
|
@@ -1111,7 +1113,7 @@ class jt extends it {
|
|
|
1111
1113
|
allowedorigins: 35,
|
|
1112
1114
|
requiredicon: 36
|
|
1113
1115
|
},
|
|
1114
|
-
|
|
1116
|
+
Tt,
|
|
1115
1117
|
[-1, -1, -1]
|
|
1116
1118
|
);
|
|
1117
1119
|
}
|
|
@@ -1230,7 +1232,7 @@ class jt extends it {
|
|
|
1230
1232
|
this.$$set({ requiredicon: e }), F();
|
|
1231
1233
|
}
|
|
1232
1234
|
}
|
|
1233
|
-
ht(
|
|
1235
|
+
ht(Nt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {}, controlchannel: {}, allowedorigins: {}, requiredicon: {} }, [], [], !0);
|
|
1234
1236
|
export {
|
|
1235
|
-
|
|
1237
|
+
Nt as default
|
|
1236
1238
|
};
|