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