@everymatrix/casino-search-nd 1.53.0 → 1.53.10
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CasinoGameThumbnailNd-D1RJ5MMN.js → CasinoGameThumbnailNd-CNJM1Qqo.js} +2818 -2869
- package/components/{CasinoSearchNd-CtD_O_ZZ.js → CasinoSearchNd-Ds6qpqa2.js} +196 -198
- package/esnext/casino-search-nd.js +14 -0
- package/package.json +8 -12
- package/components/CasinoGameThumbnailNd-DWniGJsw.cjs +0 -43
- package/components/CasinoSearchNd-CtXtN7Vm.cjs +0 -1
- package/es2015/casino-search-nd.cjs +0 -1
- package/es2015/casino-search-nd.js +0 -16
@@ -1,4 +1,4 @@
|
|
1
|
-
import { a as He, $ as qe,
|
1
|
+
import { a as He, $ as qe, c as We, S as Oe, i as Ue, s as Ve, f as T, 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 h, C as Qe } from "./CasinoGameThumbnailNd-CNJM1Qqo.js";
|
2
2
|
function de(a, e) {
|
3
3
|
He(a, e);
|
4
4
|
}
|
@@ -188,7 +188,7 @@ const me = {
|
|
188
188
|
noRecentSearches: "No recent searches yet. Search for any of our games."
|
189
189
|
}
|
190
190
|
};
|
191
|
-
if (typeof window
|
191
|
+
if (typeof window < "u") {
|
192
192
|
let a = function(e) {
|
193
193
|
return function(...t) {
|
194
194
|
try {
|
@@ -200,7 +200,7 @@ if (typeof window != "undefined") {
|
|
200
200
|
}
|
201
201
|
};
|
202
202
|
};
|
203
|
-
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-
|
203
|
+
customElements.define = a(customElements.define), import("./CasinoGameThumbnailNd-CNJM1Qqo.js").then((e) => e.D).then(({ default: e }) => {
|
204
204
|
!customElements.get("casino-game-thumbnail-nd") && customElements.define("casino-game-thumbnail-nd", e.element);
|
205
205
|
});
|
206
206
|
}
|
@@ -215,10 +215,10 @@ function fe(a) {
|
|
215
215
|
let e, t = (
|
216
216
|
/*$_*/
|
217
217
|
a[20]("cancel") + ""
|
218
|
-
), n,
|
218
|
+
), n, r, l, s;
|
219
219
|
return {
|
220
220
|
c() {
|
221
|
-
e = y("small"), n = q(t), f(e, "class",
|
221
|
+
e = y("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
222
222
|
(a[12] ? "NotVisible" : ""));
|
223
223
|
},
|
224
224
|
m(i, c) {
|
@@ -233,8 +233,8 @@ function fe(a) {
|
|
233
233
|
c[0] & /*$_*/
|
234
234
|
1048576 && t !== (t = /*$_*/
|
235
235
|
i[20]("cancel") + "") && W(n, t), c[0] & /*searchCancelled*/
|
236
|
-
4096 &&
|
237
|
-
(i[12] ? "NotVisible" : "")) && f(e, "class",
|
236
|
+
4096 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
|
237
|
+
(i[12] ? "NotVisible" : "")) && f(e, "class", r);
|
238
238
|
},
|
239
239
|
d(i) {
|
240
240
|
i && j(e), l = !1, s();
|
@@ -242,7 +242,7 @@ function fe(a) {
|
|
242
242
|
};
|
243
243
|
}
|
244
244
|
function tt(a) {
|
245
|
-
let e, t, n,
|
245
|
+
let e, t, n, r;
|
246
246
|
function l(u, g) {
|
247
247
|
if (
|
248
248
|
/*searchActive*/
|
@@ -264,7 +264,7 @@ function tt(a) {
|
|
264
264
|
);
|
265
265
|
return {
|
266
266
|
c() {
|
267
|
-
i && i.c(), e = x(), t = y("div"), c && c.c(), n = x(), m && m.c(), f(t, "class",
|
267
|
+
i && i.c(), e = x(), t = y("div"), c && c.c(), n = x(), m && m.c(), f(t, "class", r = "SearchResultsContainer " + /*searchActive*/
|
268
268
|
(a[16] == !0 ? "" : "NotVisible"));
|
269
269
|
},
|
270
270
|
m(u, g) {
|
@@ -275,8 +275,8 @@ function tt(a) {
|
|
275
275
|
u[12] === !1 ? c ? c.p(u, g) : (c = we(u), c.c(), c.m(t, n)) : c && (c.d(1), c = null), /*searchValue*/
|
276
276
|
u[11].length >= 2 && /*searchArray*/
|
277
277
|
u[14].length == 0 ? m ? m.p(u, g) : (m = ve(u), m.c(), m.m(t, null)) : m && (m.d(1), m = null), g[0] & /*searchActive*/
|
278
|
-
65536 &&
|
279
|
-
(u[16] == !0 ? "" : "NotVisible")) && f(t, "class",
|
278
|
+
65536 && r !== (r = "SearchResultsContainer " + /*searchActive*/
|
279
|
+
(u[16] == !0 ? "" : "NotVisible")) && f(t, "class", r);
|
280
280
|
},
|
281
281
|
d(u) {
|
282
282
|
u && (j(e), j(t)), i && i.d(u), c && c.d(), m && m.d();
|
@@ -292,16 +292,16 @@ function at(a) {
|
|
292
292
|
c() {
|
293
293
|
e = y("p"), n = q(t), f(e, "class", "LoadingContent");
|
294
294
|
},
|
295
|
-
m(
|
296
|
-
E(
|
295
|
+
m(r, l) {
|
296
|
+
E(r, e, l), S(e, n);
|
297
297
|
},
|
298
|
-
p(
|
298
|
+
p(r, l) {
|
299
299
|
l[0] & /*$_*/
|
300
300
|
1048576 && t !== (t = /*$_*/
|
301
|
-
|
301
|
+
r[20]("loading") + "") && W(n, t);
|
302
302
|
},
|
303
|
-
d(
|
304
|
-
|
303
|
+
d(r) {
|
304
|
+
r && j(e);
|
305
305
|
}
|
306
306
|
};
|
307
307
|
}
|
@@ -314,16 +314,16 @@ function nt(a) {
|
|
314
314
|
c() {
|
315
315
|
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
316
316
|
},
|
317
|
-
m(
|
318
|
-
E(
|
317
|
+
m(r, l) {
|
318
|
+
E(r, e, l), S(e, n);
|
319
319
|
},
|
320
|
-
p(
|
320
|
+
p(r, l) {
|
321
321
|
l[0] & /*$_*/
|
322
322
|
1048576 && t !== (t = /*$_*/
|
323
|
-
|
323
|
+
r[20]("searchResult") + "") && W(n, t);
|
324
324
|
},
|
325
|
-
d(
|
326
|
-
|
325
|
+
d(r) {
|
326
|
+
r && j(e);
|
327
327
|
}
|
328
328
|
};
|
329
329
|
}
|
@@ -331,24 +331,24 @@ function rt(a) {
|
|
331
331
|
let e, t, n = (
|
332
332
|
/*searchArray*/
|
333
333
|
a[14].length !== 0 && pe(a)
|
334
|
-
),
|
334
|
+
), r = (
|
335
335
|
/*searchArray*/
|
336
336
|
a[14].length == 0 && _e(a)
|
337
337
|
);
|
338
338
|
return {
|
339
339
|
c() {
|
340
|
-
n && n.c(), e = x(),
|
340
|
+
n && n.c(), e = x(), r && r.c(), t = ye();
|
341
341
|
},
|
342
342
|
m(l, s) {
|
343
|
-
n && n.m(l, s), E(l, e, s),
|
343
|
+
n && n.m(l, s), E(l, e, s), r && r.m(l, s), E(l, t, s);
|
344
344
|
},
|
345
345
|
p(l, s) {
|
346
346
|
/*searchArray*/
|
347
347
|
l[14].length !== 0 ? n ? n.p(l, s) : (n = pe(l), n.c(), n.m(e.parentNode, e)) : n && (n.d(1), n = null), /*searchArray*/
|
348
|
-
l[14].length == 0 ?
|
348
|
+
l[14].length == 0 ? r ? r.p(l, s) : (r = _e(l), r.c(), r.m(t.parentNode, t)) : r && (r.d(1), r = null);
|
349
349
|
},
|
350
350
|
d(l) {
|
351
|
-
l && (j(e), j(t)), n && n.d(l),
|
351
|
+
l && (j(e), j(t)), n && n.d(l), r && r.d(l);
|
352
352
|
}
|
353
353
|
};
|
354
354
|
}
|
@@ -361,21 +361,21 @@ function pe(a) {
|
|
361
361
|
c() {
|
362
362
|
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
363
363
|
},
|
364
|
-
m(
|
365
|
-
E(
|
364
|
+
m(r, l) {
|
365
|
+
E(r, e, l), S(e, n);
|
366
366
|
},
|
367
|
-
p(
|
367
|
+
p(r, l) {
|
368
368
|
l[0] & /*$_*/
|
369
369
|
1048576 && t !== (t = /*$_*/
|
370
|
-
|
370
|
+
r[20]("recentSearch") + "") && W(n, t);
|
371
371
|
},
|
372
|
-
d(
|
373
|
-
|
372
|
+
d(r) {
|
373
|
+
r && j(e);
|
374
374
|
}
|
375
375
|
};
|
376
376
|
}
|
377
377
|
function _e(a) {
|
378
|
-
let e, t, n,
|
378
|
+
let e, t, n, r = (
|
379
379
|
/*$_*/
|
380
380
|
a[20]("noRecentSearches") + ""
|
381
381
|
), l, s, i = (
|
@@ -384,7 +384,7 @@ function _e(a) {
|
|
384
384
|
);
|
385
385
|
return {
|
386
386
|
c() {
|
387
|
-
e = y("div"), i && i.c(), t = x(), n = y("p"), l = q(
|
387
|
+
e = y("div"), i && i.c(), t = x(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
388
388
|
(a[10] == "true" ? "WithIcon" : ""));
|
389
389
|
},
|
390
390
|
m(c, m) {
|
@@ -393,8 +393,8 @@ function _e(a) {
|
|
393
393
|
p(c, m) {
|
394
394
|
/*notfoundicon*/
|
395
395
|
c[10] === "true" ? i || (i = Se(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), m[0] & /*$_*/
|
396
|
-
1048576 &&
|
397
|
-
c[20]("noRecentSearches") + "") && W(l,
|
396
|
+
1048576 && r !== (r = /*$_*/
|
397
|
+
c[20]("noRecentSearches") + "") && W(l, r), m[0] & /*notfoundicon*/
|
398
398
|
1024 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
399
399
|
(c[10] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
400
400
|
},
|
@@ -422,29 +422,29 @@ function we(a) {
|
|
422
422
|
/*searchArray*/
|
423
423
|
a[14]
|
424
424
|
), n = [];
|
425
|
-
for (let
|
426
|
-
n[
|
425
|
+
for (let r = 0; r < t.length; r += 1)
|
426
|
+
n[r] = be(ge(a, t, r));
|
427
427
|
return {
|
428
428
|
c() {
|
429
|
-
for (let
|
430
|
-
n[
|
429
|
+
for (let r = 0; r < n.length; r += 1)
|
430
|
+
n[r].c();
|
431
431
|
e = ye();
|
432
432
|
},
|
433
|
-
m(
|
433
|
+
m(r, l) {
|
434
434
|
for (let s = 0; s < n.length; s += 1)
|
435
|
-
n[s] && n[s].m(
|
436
|
-
E(
|
435
|
+
n[s] && n[s].m(r, l);
|
436
|
+
E(r, e, l);
|
437
437
|
},
|
438
|
-
p(
|
438
|
+
p(r, l) {
|
439
439
|
if (l[0] & /*endpoint, sessionID, playerID, showfavorites, lang, searchArray, addGameTag, showgamename, integratedgameframedesktop, integratedgameframemobile, clientstyling, clientstylingurl, gamepagemodalurl*/
|
440
440
|
17580543) {
|
441
441
|
t = he(
|
442
442
|
/*searchArray*/
|
443
|
-
|
443
|
+
r[14]
|
444
444
|
);
|
445
445
|
let s;
|
446
446
|
for (s = 0; s < t.length; s += 1) {
|
447
|
-
const i = ge(
|
447
|
+
const i = ge(r, t, s);
|
448
448
|
n[s] ? n[s].p(i, l) : (n[s] = be(i), n[s].c(), n[s].m(e.parentNode, e));
|
449
449
|
}
|
450
450
|
for (; s < n.length; s += 1)
|
@@ -452,200 +452,198 @@ function we(a) {
|
|
452
452
|
n.length = t.length;
|
453
453
|
}
|
454
454
|
},
|
455
|
-
d(
|
456
|
-
|
455
|
+
d(r) {
|
456
|
+
r && j(e), Xe(n, r);
|
457
457
|
}
|
458
458
|
};
|
459
459
|
}
|
460
460
|
function be(a) {
|
461
|
-
let e, t, n,
|
461
|
+
let e, t, n, r, l, s, i, c, m, u, g, k;
|
462
462
|
return {
|
463
463
|
c() {
|
464
|
-
|
465
|
-
e = y("casino-game-thumbnail-nd"), d(
|
464
|
+
e = y("casino-game-thumbnail-nd"), h(
|
466
465
|
e,
|
467
466
|
"endpoint",
|
468
467
|
/*endpoint*/
|
469
468
|
a[0]
|
470
|
-
),
|
469
|
+
), h(
|
471
470
|
e,
|
472
471
|
"session",
|
473
472
|
/*sessionID*/
|
474
473
|
a[18]
|
475
|
-
),
|
474
|
+
), h(
|
476
475
|
e,
|
477
476
|
"userid",
|
478
477
|
/*playerID*/
|
479
478
|
a[19]
|
480
|
-
),
|
479
|
+
), h(
|
481
480
|
e,
|
482
481
|
"favorites",
|
483
482
|
/*showfavorites*/
|
484
483
|
a[8]
|
485
|
-
),
|
484
|
+
), h(
|
486
485
|
e,
|
487
486
|
"lang",
|
488
487
|
/*lang*/
|
489
488
|
a[1]
|
490
|
-
),
|
491
|
-
a[53].thumbnail),
|
492
|
-
a[53].name),
|
493
|
-
a[53].vendor.name),
|
494
|
-
a[53].launchUrl),
|
495
|
-
a[53].isNew),
|
496
|
-
|
489
|
+
), h(e, "gamethumbnail", t = /*game*/
|
490
|
+
a[53].thumbnail), h(e, "gamename", n = /*game*/
|
491
|
+
a[53].name), h(e, "gamevendor", r = /*game*/
|
492
|
+
a[53].vendor.name), h(e, "gameLaunchUrl", l = /*game*/
|
493
|
+
a[53].launchUrl), h(e, "gameisnew", s = /*game*/
|
494
|
+
a[53].isNew), h(e, "gametag", i = /*game*/
|
495
|
+
a[53].advancedTags?.length > 0 && /*addGameTag*/
|
497
496
|
a[24](
|
498
497
|
/*game*/
|
499
498
|
a[53].advancedTags
|
500
|
-
)),
|
501
|
-
a[53].cellSize),
|
502
|
-
a[53].id),
|
499
|
+
)), h(e, "gamecellsize", c = /*game*/
|
500
|
+
a[53].cellSize), h(e, "gameid", m = /*game*/
|
501
|
+
a[53].id), h(
|
503
502
|
e,
|
504
503
|
"showgamename",
|
505
504
|
/*showgamename*/
|
506
505
|
a[6]
|
507
|
-
),
|
508
|
-
a[53].hasFunMode),
|
509
|
-
a[53].isFavorite),
|
506
|
+
), h(e, "gamefunmode", u = /*game*/
|
507
|
+
a[53].hasFunMode), h(e, "gamefavorite", g = /*game*/
|
508
|
+
a[53].isFavorite), h(e, "livelobbyendpoint", k = /*game*/
|
510
509
|
a[53].details ? (
|
511
510
|
/*game*/
|
512
511
|
a[53].launchUrl
|
513
|
-
) : ""),
|
512
|
+
) : ""), h(
|
514
513
|
e,
|
515
514
|
"integratedgameframedesktop",
|
516
515
|
/*integratedgameframedesktop*/
|
517
516
|
a[4]
|
518
|
-
),
|
517
|
+
), h(
|
519
518
|
e,
|
520
519
|
"integratedgameframemobile",
|
521
520
|
/*integratedgameframemobile*/
|
522
521
|
a[5]
|
523
|
-
),
|
522
|
+
), h(
|
524
523
|
e,
|
525
524
|
"clientstyling",
|
526
525
|
/*clientstyling*/
|
527
526
|
a[2]
|
528
|
-
),
|
527
|
+
), h(
|
529
528
|
e,
|
530
529
|
"clientstylingurl",
|
531
530
|
/*clientstylingurl*/
|
532
531
|
a[3]
|
533
|
-
),
|
532
|
+
), h(
|
534
533
|
e,
|
535
534
|
"gamepagemodalurl",
|
536
535
|
/*gamepagemodalurl*/
|
537
536
|
a[7]
|
538
537
|
);
|
539
538
|
},
|
540
|
-
m(
|
541
|
-
E(
|
539
|
+
m(d, _) {
|
540
|
+
E(d, e, _);
|
542
541
|
},
|
543
|
-
p(
|
544
|
-
var N;
|
542
|
+
p(d, _) {
|
545
543
|
_[0] & /*endpoint*/
|
546
|
-
1 &&
|
544
|
+
1 && h(
|
547
545
|
e,
|
548
546
|
"endpoint",
|
549
547
|
/*endpoint*/
|
550
|
-
|
548
|
+
d[0]
|
551
549
|
), _[0] & /*sessionID*/
|
552
|
-
262144 &&
|
550
|
+
262144 && h(
|
553
551
|
e,
|
554
552
|
"session",
|
555
553
|
/*sessionID*/
|
556
|
-
|
554
|
+
d[18]
|
557
555
|
), _[0] & /*playerID*/
|
558
|
-
524288 &&
|
556
|
+
524288 && h(
|
559
557
|
e,
|
560
558
|
"userid",
|
561
559
|
/*playerID*/
|
562
|
-
|
560
|
+
d[19]
|
563
561
|
), _[0] & /*showfavorites*/
|
564
|
-
256 &&
|
562
|
+
256 && h(
|
565
563
|
e,
|
566
564
|
"favorites",
|
567
565
|
/*showfavorites*/
|
568
|
-
|
566
|
+
d[8]
|
569
567
|
), _[0] & /*lang*/
|
570
|
-
2 &&
|
568
|
+
2 && h(
|
571
569
|
e,
|
572
570
|
"lang",
|
573
571
|
/*lang*/
|
574
|
-
|
572
|
+
d[1]
|
575
573
|
), _[0] & /*searchArray*/
|
576
574
|
16384 && t !== (t = /*game*/
|
577
|
-
|
575
|
+
d[53].thumbnail) && h(e, "gamethumbnail", t), _[0] & /*searchArray*/
|
578
576
|
16384 && n !== (n = /*game*/
|
579
|
-
|
580
|
-
16384 &&
|
581
|
-
|
577
|
+
d[53].name) && h(e, "gamename", n), _[0] & /*searchArray*/
|
578
|
+
16384 && r !== (r = /*game*/
|
579
|
+
d[53].vendor.name) && h(e, "gamevendor", r), _[0] & /*searchArray*/
|
582
580
|
16384 && l !== (l = /*game*/
|
583
|
-
|
581
|
+
d[53].launchUrl) && h(e, "gameLaunchUrl", l), _[0] & /*searchArray*/
|
584
582
|
16384 && s !== (s = /*game*/
|
585
|
-
|
583
|
+
d[53].isNew) && h(e, "gameisnew", s), _[0] & /*searchArray*/
|
586
584
|
16384 && i !== (i = /*game*/
|
587
|
-
|
588
|
-
|
585
|
+
d[53].advancedTags?.length > 0 && /*addGameTag*/
|
586
|
+
d[24](
|
589
587
|
/*game*/
|
590
|
-
|
591
|
-
)) &&
|
588
|
+
d[53].advancedTags
|
589
|
+
)) && h(e, "gametag", i), _[0] & /*searchArray*/
|
592
590
|
16384 && c !== (c = /*game*/
|
593
|
-
|
591
|
+
d[53].cellSize) && h(e, "gamecellsize", c), _[0] & /*searchArray*/
|
594
592
|
16384 && m !== (m = /*game*/
|
595
|
-
|
596
|
-
64 &&
|
593
|
+
d[53].id) && h(e, "gameid", m), _[0] & /*showgamename*/
|
594
|
+
64 && h(
|
597
595
|
e,
|
598
596
|
"showgamename",
|
599
597
|
/*showgamename*/
|
600
|
-
|
598
|
+
d[6]
|
601
599
|
), _[0] & /*searchArray*/
|
602
600
|
16384 && u !== (u = /*game*/
|
603
|
-
|
601
|
+
d[53].hasFunMode) && h(e, "gamefunmode", u), _[0] & /*searchArray*/
|
604
602
|
16384 && g !== (g = /*game*/
|
605
|
-
|
603
|
+
d[53].isFavorite) && h(e, "gamefavorite", g), _[0] & /*searchArray*/
|
606
604
|
16384 && k !== (k = /*game*/
|
607
|
-
|
605
|
+
d[53].details ? (
|
608
606
|
/*game*/
|
609
|
-
|
610
|
-
) : "") &&
|
611
|
-
16 &&
|
607
|
+
d[53].launchUrl
|
608
|
+
) : "") && h(e, "livelobbyendpoint", k), _[0] & /*integratedgameframedesktop*/
|
609
|
+
16 && h(
|
612
610
|
e,
|
613
611
|
"integratedgameframedesktop",
|
614
612
|
/*integratedgameframedesktop*/
|
615
|
-
|
613
|
+
d[4]
|
616
614
|
), _[0] & /*integratedgameframemobile*/
|
617
|
-
32 &&
|
615
|
+
32 && h(
|
618
616
|
e,
|
619
617
|
"integratedgameframemobile",
|
620
618
|
/*integratedgameframemobile*/
|
621
|
-
|
619
|
+
d[5]
|
622
620
|
), _[0] & /*clientstyling*/
|
623
|
-
4 &&
|
621
|
+
4 && h(
|
624
622
|
e,
|
625
623
|
"clientstyling",
|
626
624
|
/*clientstyling*/
|
627
|
-
|
625
|
+
d[2]
|
628
626
|
), _[0] & /*clientstylingurl*/
|
629
|
-
8 &&
|
627
|
+
8 && h(
|
630
628
|
e,
|
631
629
|
"clientstylingurl",
|
632
630
|
/*clientstylingurl*/
|
633
|
-
|
631
|
+
d[3]
|
634
632
|
), _[0] & /*gamepagemodalurl*/
|
635
|
-
128 &&
|
633
|
+
128 && h(
|
636
634
|
e,
|
637
635
|
"gamepagemodalurl",
|
638
636
|
/*gamepagemodalurl*/
|
639
|
-
|
637
|
+
d[7]
|
640
638
|
);
|
641
639
|
},
|
642
|
-
d(
|
643
|
-
|
640
|
+
d(d) {
|
641
|
+
d && j(e);
|
644
642
|
}
|
645
643
|
};
|
646
644
|
}
|
647
645
|
function ve(a) {
|
648
|
-
let e, t, n,
|
646
|
+
let e, t, n, r = (
|
649
647
|
/*$_*/
|
650
648
|
a[20]("notFound") + ""
|
651
649
|
), l, s, i, c = (
|
@@ -657,19 +655,19 @@ function ve(a) {
|
|
657
655
|
);
|
658
656
|
return {
|
659
657
|
c() {
|
660
|
-
e = y("div"), g && g.c(), t = x(), n = y("p"), l = q(
|
658
|
+
e = y("div"), g && g.c(), t = x(), n = y("p"), l = q(r), s = x(), i = y("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
|
661
659
|
(a[10] == "true" ? "WithIcon" : ""));
|
662
660
|
},
|
663
|
-
m(k,
|
664
|
-
E(k, e,
|
661
|
+
m(k, d) {
|
662
|
+
E(k, e, d), g && g.m(e, null), S(e, t), S(e, n), S(n, l), S(e, s), S(e, i), S(i, m);
|
665
663
|
},
|
666
|
-
p(k,
|
664
|
+
p(k, d) {
|
667
665
|
/*notfoundicon*/
|
668
|
-
k[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null),
|
669
|
-
1048576 &&
|
670
|
-
k[20]("notFound") + "") && W(l,
|
666
|
+
k[10] === "true" ? g || (g = ke(), g.c(), g.m(e, t)) : g && (g.d(1), g = null), d[0] & /*$_*/
|
667
|
+
1048576 && r !== (r = /*$_*/
|
668
|
+
k[20]("notFound") + "") && W(l, r), d[0] & /*$_*/
|
671
669
|
1048576 && c !== (c = /*$_*/
|
672
|
-
k[20]("notFoundText") + "") && W(m, c),
|
670
|
+
k[20]("notFoundText") + "") && W(m, c), d[0] & /*notfoundicon*/
|
673
671
|
1024 && u !== (u = "ResultsContainerError " + /*notfoundicon*/
|
674
672
|
(k[10] == "true" ? "WithIcon" : "")) && f(e, "class", u);
|
675
673
|
},
|
@@ -693,7 +691,7 @@ function ke(a) {
|
|
693
691
|
};
|
694
692
|
}
|
695
693
|
function ot(a) {
|
696
|
-
let e, t, n,
|
694
|
+
let e, t, n, r, l, s, i, c, m, u, g, k, d, _, D, N, M, U, A, P, v = (
|
697
695
|
/*cancelbutton*/
|
698
696
|
a[9] === "true" && fe(a)
|
699
697
|
);
|
@@ -706,22 +704,22 @@ function ot(a) {
|
|
706
704
|
let I = O(a), L = I(a);
|
707
705
|
return {
|
708
706
|
c() {
|
709
|
-
e = y("div"), t = y("div"), n = y("div"),
|
707
|
+
e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = x(), s = y("input"), c = x(), m = y("span"), u = le("svg"), g = le("path"), d = x(), v && v.c(), D = x(), N = y("div"), U = x(), L.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
710
708
|
a[20]("placeHolderSearchGames")), f(s, "maxlength", st), f(g, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(g, "stroke", "#717171"), f(g, "stroke-width", "2"), f(g, "stroke-linecap", "round"), f(g, "stroke-linejoin", "round"), f(u, "width", "11"), f(u, "height", "11"), f(u, "fill", "none"), f(u, "xmlns", "http://www.w3.org/2000/svg"), f(m, "class", k = "SearchClearButton " + /*cancelbutton*/
|
711
709
|
(a[9] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
712
710
|
(a[11].length != 0 ? "" : "NotVisible")), f(n, "class", _ = "Search " + /*searchCancelled*/
|
713
|
-
(a[12] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(
|
711
|
+
(a[12] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(N, "class", M = /*cancelbutton*/
|
714
712
|
a[9] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
|
715
713
|
/*userAgent*/
|
716
714
|
a[21]
|
717
715
|
) !== "PC" ? "" : "Desktop") + " CasinoSearch");
|
718
716
|
},
|
719
717
|
m(b, F) {
|
720
|
-
E(b, e, F), S(e, t), S(t, n), S(n,
|
718
|
+
E(b, e, F), S(e, t), S(t, n), S(n, r), S(n, l), S(n, s), ie(
|
721
719
|
s,
|
722
720
|
/*searchValue*/
|
723
721
|
a[11]
|
724
|
-
), a[33](s), S(n, c), S(n, m), S(m, u), S(u, g), S(n,
|
722
|
+
), a[33](s), S(n, c), S(n, m), S(m, u), S(u, g), S(n, d), v && v.m(n, null), S(e, D), S(e, N), S(e, U), L.m(e, null), a[36](e), A || (P = [
|
725
723
|
J(
|
726
724
|
s,
|
727
725
|
"input",
|
@@ -741,7 +739,7 @@ function ot(a) {
|
|
741
739
|
a[34]
|
742
740
|
),
|
743
741
|
J(
|
744
|
-
|
742
|
+
N,
|
745
743
|
"click",
|
746
744
|
/*handleOverlay*/
|
747
745
|
a[23]
|
@@ -764,23 +762,23 @@ function ot(a) {
|
|
764
762
|
b[9] === "true" ? v ? v.p(b, F) : (v = fe(b), v.c(), v.m(n, null)) : v && (v.d(1), v = null), F[0] & /*searchCancelled*/
|
765
763
|
4096 && _ !== (_ = "Search " + /*searchCancelled*/
|
766
764
|
(b[12] ? "" : "SearchAnimation")) && f(n, "class", _), F[0] & /*cancelbutton*/
|
767
|
-
512 &&
|
768
|
-
b[9] != "true" ? "OverlayCancel" : "") && f(
|
765
|
+
512 && M !== (M = /*cancelbutton*/
|
766
|
+
b[9] != "true" ? "OverlayCancel" : "") && f(N, "class", M), I === (I = O(b)) && L ? L.p(b, F) : (L.d(1), L = I(b), L && (L.c(), L.m(e, null)));
|
769
767
|
},
|
770
768
|
i: ce,
|
771
769
|
o: ce,
|
772
770
|
d(b) {
|
773
|
-
b && j(e), a[33](null), v && v.d(), L.d(), a[36](null), A = !1, Ze(
|
771
|
+
b && j(e), a[33](null), v && v.d(), L.d(), a[36](null), A = !1, Ze(P);
|
774
772
|
}
|
775
773
|
};
|
776
774
|
}
|
777
775
|
let st = 50;
|
778
776
|
function lt(a, e, t) {
|
779
777
|
let n;
|
780
|
-
Ye(a, Qe, (
|
781
|
-
let { endpoint:
|
778
|
+
Ye(a, Qe, (o) => t(20, n = o));
|
779
|
+
let { endpoint: r = "" } = 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: d = "" } = e, { gamepagemodalurl: _ = "true" } = e, { translationurl: D = "" } = e, { showfavorites: N = "" } = e, { cancelbutton: M = "true" } = e, { notfoundicon: U = "false" } = e, A = window.navigator.userAgent, P = [], v = [], O = {}, I = "", L, b = !0, F = !1, z = !1, B, Z = !1, Y, K, te = [];
|
782
780
|
const Re = () => {
|
783
|
-
fetch(
|
781
|
+
fetch(D).then((p) => p.json()).then((p) => {
|
784
782
|
Object.keys(p).forEach((w) => {
|
785
783
|
de(w, p[w]);
|
786
784
|
});
|
@@ -788,93 +786,93 @@ function lt(a, e, t) {
|
|
788
786
|
console.log(p);
|
789
787
|
});
|
790
788
|
};
|
791
|
-
Object.keys(me).forEach((
|
792
|
-
de(
|
789
|
+
Object.keys(me).forEach((o) => {
|
790
|
+
de(o, me[o]);
|
793
791
|
});
|
794
|
-
const ae = (
|
795
|
-
|
792
|
+
const ae = (o) => {
|
793
|
+
o.data && o.data.type == "SearchedItemClicked" && Ie(o.data.gameId), o.data.type == "UserSessionID" && (t(18, Y = o.data.session), t(19, K = o.data.userid), t(31, Z = !0)), o.data.type == "CategoryChange" && X();
|
796
794
|
}, ne = () => {
|
797
|
-
if (t(12, b = !1), t(16, F = !0),
|
798
|
-
t(14,
|
799
|
-
let
|
800
|
-
|
795
|
+
if (t(12, b = !1), t(16, F = !0), r && l && c && I.length < 2) {
|
796
|
+
t(14, P = []);
|
797
|
+
let o = localStorage.getItem("searchedGamesWds_casino"), p = [];
|
798
|
+
o && (p = o.split(","));
|
801
799
|
let w = [], R = 0, C = p.length;
|
802
800
|
if (C > 0) {
|
803
801
|
for (R = 0; R < C; R++) {
|
804
|
-
let G = new URL(`${
|
802
|
+
let G = new URL(`${r}/v1/casino/games/${p[R]}`);
|
805
803
|
G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ee(A)), w.push(Le(G, p[R]));
|
806
804
|
}
|
807
805
|
Promise.all(w).then((G) => {
|
808
806
|
G = G.filter(function(H) {
|
809
807
|
return !!H;
|
810
|
-
}), t(14,
|
808
|
+
}), t(14, P = G.map((H) => (H.isFavorite = re(H.id), H))), P.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
|
811
809
|
}).catch((G) => {
|
812
810
|
V("searchError", "SearchWidget");
|
813
811
|
});
|
814
812
|
}
|
815
813
|
}
|
816
814
|
se(F), V("searchAttempt", "SearchWidget"), V("SearchInitialized", "SearchWidget");
|
817
|
-
}, V = (
|
818
|
-
typeof gtag == "function" && gtag("event",
|
815
|
+
}, V = (o, p) => {
|
816
|
+
typeof gtag == "function" && gtag("event", o, { context: p });
|
819
817
|
}, Ce = () => {
|
820
|
-
|
821
|
-
}, Fe = (
|
822
|
-
t(17, z = !0), fetch(
|
818
|
+
M != "true" && X();
|
819
|
+
}, Fe = (o) => new Promise((p, w) => {
|
820
|
+
t(17, z = !0), fetch(o.href).then((R) => R.json()).then((R) => {
|
823
821
|
t(17, z = !1), p(R);
|
824
822
|
}).catch((R) => {
|
825
823
|
t(17, z = !1), console.error(R), w(R);
|
826
824
|
});
|
827
|
-
}), Le = (
|
828
|
-
t(17, z = !0), p && Object.keys(O).indexOf(p) >= 0 ? (t(17, z = !1), w(O[p])) : fetch(
|
825
|
+
}), Le = (o, p) => new Promise((w, R) => {
|
826
|
+
t(17, z = !0), p && Object.keys(O).indexOf(p) >= 0 ? (t(17, z = !1), w(O[p])) : fetch(o).then((C) => C.json()).then((C) => {
|
829
827
|
t(17, z = !1), C.error || (O[C[0].gameId] = C[0]), w(C[0]);
|
830
828
|
}).catch((C) => {
|
831
829
|
t(17, z = !1), console.error(C), R(C);
|
832
830
|
});
|
833
831
|
}), Te = () => {
|
834
|
-
const
|
832
|
+
const o = new URL(`${r}/v1/player/${K}/favorites/`);
|
835
833
|
t(17, z = !0);
|
836
834
|
let p = {
|
837
835
|
method: "GET",
|
838
836
|
headers: { "X-SessionID": Y }
|
839
837
|
};
|
840
|
-
fetch(
|
838
|
+
fetch(o.href, p).then((w) => w.json()).then((w) => {
|
841
839
|
t(17, z = !1), te = w.items.map((R) => R.id);
|
842
840
|
});
|
843
841
|
}, Ee = () => {
|
844
842
|
t(31, Z = !0), t(18, Y = s), t(19, K = i);
|
845
|
-
}, re = (
|
846
|
-
if (
|
843
|
+
}, re = (o) => te.findIndex((p) => p == o) !== -1, je = (o) => {
|
844
|
+
if (o?.length === 0) return "";
|
847
845
|
let p, w = 99999999999, R;
|
848
846
|
const C = new Date(Date.now());
|
849
|
-
return
|
847
|
+
return o.forEach((G, H) => {
|
850
848
|
const Be = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
|
851
|
-
Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(Be) && Q(C).isBefore($) && (p =
|
849
|
+
Q($).diff(C) < w && (w = Q($).diff(C), R = H), Q(C).isAfter(Be) && Q(C).isBefore($) && (p = o[R].name);
|
852
850
|
}), p;
|
853
|
-
}, Ie = (
|
854
|
-
if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(
|
851
|
+
}, Ie = (o) => {
|
852
|
+
if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(o) === -1) {
|
855
853
|
let p;
|
856
|
-
v.unshift(
|
854
|
+
v.unshift(o), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
|
857
855
|
}
|
858
856
|
}, X = () => {
|
859
|
-
t(11, I = ""), t(12, b = !0), t(17, z = !1), t(14,
|
857
|
+
t(11, I = ""), t(12, b = !0), t(17, z = !1), t(14, P = []), t(16, F = !1), se(F);
|
860
858
|
}, oe = () => {
|
861
859
|
t(11, I = ""), L.focus();
|
862
|
-
}, se = (
|
860
|
+
}, se = (o) => {
|
863
861
|
window.postMessage(
|
864
862
|
{
|
865
|
-
type:
|
866
|
-
searchStatus:
|
863
|
+
type: o === !0 ? "searchActive" : "searchCancelled",
|
864
|
+
searchStatus: o
|
867
865
|
},
|
868
866
|
window.location.href
|
869
867
|
);
|
870
868
|
}, Ge = () => {
|
871
869
|
$e(c);
|
872
870
|
}, ze = () => {
|
873
|
-
let
|
874
|
-
|
871
|
+
let o = document.createElement("style");
|
872
|
+
o.innerHTML = m, B.appendChild(o);
|
875
873
|
}, xe = () => {
|
876
|
-
let
|
877
|
-
fetch(
|
874
|
+
let o = new URL(u), p = document.createElement("style");
|
875
|
+
fetch(o.href).then((w) => w.text()).then((w) => {
|
878
876
|
p.innerHTML = w, setTimeout(
|
879
877
|
() => {
|
880
878
|
B.appendChild(p);
|
@@ -889,53 +887,53 @@ function lt(a, e, t) {
|
|
889
887
|
function Ne() {
|
890
888
|
I = this.value, t(11, I);
|
891
889
|
}
|
892
|
-
function Pe(
|
893
|
-
ue[
|
894
|
-
L =
|
890
|
+
function Pe(o) {
|
891
|
+
ue[o ? "unshift" : "push"](() => {
|
892
|
+
L = o, t(15, L);
|
895
893
|
});
|
896
894
|
}
|
897
895
|
const Me = () => oe(), De = () => X();
|
898
|
-
function Ae(
|
899
|
-
ue[
|
900
|
-
B =
|
896
|
+
function Ae(o) {
|
897
|
+
ue[o ? "unshift" : "push"](() => {
|
898
|
+
B = o, t(13, B);
|
901
899
|
});
|
902
900
|
}
|
903
|
-
return a.$$set = (
|
904
|
-
"endpoint" in
|
901
|
+
return a.$$set = (o) => {
|
902
|
+
"endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(27, l = o.datasource), "session" in o && t(28, s = o.session), "userid" in o && t(29, i = o.userid), "lang" in o && t(1, c = o.lang), "clientstyling" in o && t(2, m = o.clientstyling), "clientstylingurl" in o && t(3, u = o.clientstylingurl), "integratedgameframedesktop" in o && t(4, g = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(5, k = o.integratedgameframemobile), "showgamename" in o && t(6, d = o.showgamename), "gamepagemodalurl" in o && t(7, _ = o.gamepagemodalurl), "translationurl" in o && t(30, D = o.translationurl), "showfavorites" in o && t(8, N = o.showfavorites), "cancelbutton" in o && t(9, M = o.cancelbutton), "notfoundicon" in o && t(10, U = o.notfoundicon);
|
905
903
|
}, a.$$.update = () => {
|
906
904
|
if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
907
905
|
134223875)
|
908
906
|
if (I.length >= 2) {
|
909
|
-
const
|
910
|
-
|
911
|
-
t(14,
|
907
|
+
const o = new URL(`${r}/v1/casino/games`);
|
908
|
+
o.searchParams.append("datasource", l), o.searchParams.append("expand", "vendor"), o.searchParams.append("platform", ee(A)), o.searchParams.append("language", c), o.searchParams.append("pagination", "offset=0,limit=30"), o.searchParams.append("filter", `name=${I}`), Fe(o).then((p) => {
|
909
|
+
t(14, P = p.items.map((w) => (w.isFavorite = re(w.id), w)));
|
912
910
|
});
|
913
911
|
} else
|
914
912
|
b || ne();
|
915
913
|
a.$$.dirty[0] & /*lang*/
|
916
914
|
2 && c && Ge(), a.$$.dirty[0] & /*translationurl*/
|
917
|
-
1073741824 &&
|
915
|
+
1073741824 && D && Re(), a.$$.dirty[0] & /*session, userid*/
|
918
916
|
805306368 && s && i && Ee(), a.$$.dirty[0] & /*showfavorites*/
|
919
917
|
256 | a.$$.dirty[1] & /*isLoggedIn*/
|
920
|
-
1 &&
|
918
|
+
1 && N && Z && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
921
919
|
8196 && m && B && ze(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
922
920
|
8200 && u && B && xe();
|
923
921
|
}, [
|
924
|
-
|
922
|
+
r,
|
925
923
|
c,
|
926
924
|
m,
|
927
925
|
u,
|
928
926
|
g,
|
929
927
|
k,
|
930
|
-
|
928
|
+
d,
|
931
929
|
_,
|
932
|
-
|
933
|
-
|
930
|
+
N,
|
931
|
+
M,
|
934
932
|
U,
|
935
933
|
I,
|
936
934
|
b,
|
937
935
|
B,
|
938
|
-
|
936
|
+
P,
|
939
937
|
L,
|
940
938
|
F,
|
941
939
|
z,
|
@@ -951,7 +949,7 @@ function lt(a, e, t) {
|
|
951
949
|
l,
|
952
950
|
s,
|
953
951
|
i,
|
954
|
-
|
952
|
+
D,
|
955
953
|
Z,
|
956
954
|
Ne,
|
957
955
|
Pe,
|
@@ -960,9 +958,9 @@ function lt(a, e, t) {
|
|
960
958
|
Ae
|
961
959
|
];
|
962
960
|
}
|
963
|
-
class it extends
|
961
|
+
class it extends Oe {
|
964
962
|
constructor(e) {
|
965
|
-
super(),
|
963
|
+
super(), Ue(
|
966
964
|
this,
|
967
965
|
e,
|
968
966
|
lt,
|
@@ -1080,7 +1078,7 @@ class it extends We {
|
|
1080
1078
|
this.$$set({ notfoundicon: e }), T();
|
1081
1079
|
}
|
1082
1080
|
}
|
1083
|
-
|
1081
|
+
We(it, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
|
1084
1082
|
export {
|
1085
|
-
it as
|
1083
|
+
it as C
|
1086
1084
|
};
|