@everymatrix/casino-search-nd 1.53.0 → 1.53.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { a as He, $ as qe, S as We, i as Oe, f as T, c as Ue, s as Ve, b as Je, e as y, d as x, g as le, h as f, j as ee, k as E, l as S, m as ie, n as J, o as ce, p as j, r as Ze, q as Ye, t as Ke, u as q, v as W, w as Q, x as ue, y as he, z as ye, A as Xe, B as d, C as Qe } from "./CasinoGameThumbnailNd-D1RJ5MMN.js";
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 != "undefined") {
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-D1RJ5MMN.js").then((e) => e.D).then(({ default: e }) => {
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, o, l, s;
218
+ ), n, r, l, s;
219
219
  return {
220
220
  c() {
221
- e = y("small"), n = q(t), f(e, "class", o = "SearchCancelButton " + /*searchCancelled*/
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 && o !== (o = "SearchCancelButton " + /*searchCancelled*/
237
- (i[12] ? "NotVisible" : "")) && f(e, "class", o);
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, o;
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", o = "SearchResultsContainer " + /*searchActive*/
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 && o !== (o = "SearchResultsContainer " + /*searchActive*/
279
- (u[16] == !0 ? "" : "NotVisible")) && f(t, "class", o);
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(o, l) {
296
- E(o, e, l), S(e, n);
295
+ m(r, l) {
296
+ E(r, e, l), S(e, n);
297
297
  },
298
- p(o, l) {
298
+ p(r, l) {
299
299
  l[0] & /*$_*/
300
300
  1048576 && t !== (t = /*$_*/
301
- o[20]("loading") + "") && W(n, t);
301
+ r[20]("loading") + "") && W(n, t);
302
302
  },
303
- d(o) {
304
- o && j(e);
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(o, l) {
318
- E(o, e, l), S(e, n);
317
+ m(r, l) {
318
+ E(r, e, l), S(e, n);
319
319
  },
320
- p(o, l) {
320
+ p(r, l) {
321
321
  l[0] & /*$_*/
322
322
  1048576 && t !== (t = /*$_*/
323
- o[20]("searchResult") + "") && W(n, t);
323
+ r[20]("searchResult") + "") && W(n, t);
324
324
  },
325
- d(o) {
326
- o && j(e);
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
- ), o = (
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(), o && o.c(), t = ye();
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), o && o.m(l, s), E(l, t, 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 ? o ? o.p(l, s) : (o = _e(l), o.c(), o.m(t.parentNode, t)) : o && (o.d(1), o = null);
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), o && o.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(o, l) {
365
- E(o, e, l), S(e, n);
364
+ m(r, l) {
365
+ E(r, e, l), S(e, n);
366
366
  },
367
- p(o, l) {
367
+ p(r, l) {
368
368
  l[0] & /*$_*/
369
369
  1048576 && t !== (t = /*$_*/
370
- o[20]("recentSearch") + "") && W(n, t);
370
+ r[20]("recentSearch") + "") && W(n, t);
371
371
  },
372
- d(o) {
373
- o && j(e);
372
+ d(r) {
373
+ r && j(e);
374
374
  }
375
375
  };
376
376
  }
377
377
  function _e(a) {
378
- let e, t, n, o = (
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(o), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
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 && o !== (o = /*$_*/
397
- c[20]("noRecentSearches") + "") && W(l, o), m[0] & /*notfoundicon*/
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 o = 0; o < t.length; o += 1)
426
- n[o] = be(ge(a, t, o));
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 o = 0; o < n.length; o += 1)
430
- n[o].c();
429
+ for (let r = 0; r < n.length; r += 1)
430
+ n[r].c();
431
431
  e = ye();
432
432
  },
433
- m(o, l) {
433
+ m(r, l) {
434
434
  for (let s = 0; s < n.length; s += 1)
435
- n[s] && n[s].m(o, l);
436
- E(o, e, l);
435
+ n[s] && n[s].m(r, l);
436
+ E(r, e, l);
437
437
  },
438
- p(o, l) {
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
- o[14]
443
+ r[14]
444
444
  );
445
445
  let s;
446
446
  for (s = 0; s < t.length; s += 1) {
447
- const i = ge(o, t, s);
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(o) {
456
- o && j(e), Xe(n, o);
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, o, l, s, i, c, m, u, g, k;
461
+ let e, t, n, r, l, s, i, c, m, u, g, k;
462
462
  return {
463
463
  c() {
464
- var h;
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
- ), d(
469
+ ), h(
471
470
  e,
472
471
  "session",
473
472
  /*sessionID*/
474
473
  a[18]
475
- ), d(
474
+ ), h(
476
475
  e,
477
476
  "userid",
478
477
  /*playerID*/
479
478
  a[19]
480
- ), d(
479
+ ), h(
481
480
  e,
482
481
  "favorites",
483
482
  /*showfavorites*/
484
483
  a[8]
485
- ), d(
484
+ ), h(
486
485
  e,
487
486
  "lang",
488
487
  /*lang*/
489
488
  a[1]
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*/
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
- )), d(e, "gamecellsize", c = /*game*/
501
- a[53].cellSize), d(e, "gameid", m = /*game*/
502
- a[53].id), d(
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
- ), d(e, "gamefunmode", u = /*game*/
508
- a[53].hasFunMode), d(e, "gamefavorite", g = /*game*/
509
- a[53].isFavorite), d(e, "livelobbyendpoint", k = /*game*/
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
- ) : ""), d(
512
+ ) : ""), h(
514
513
  e,
515
514
  "integratedgameframedesktop",
516
515
  /*integratedgameframedesktop*/
517
516
  a[4]
518
- ), d(
517
+ ), h(
519
518
  e,
520
519
  "integratedgameframemobile",
521
520
  /*integratedgameframemobile*/
522
521
  a[5]
523
- ), d(
522
+ ), h(
524
523
  e,
525
524
  "clientstyling",
526
525
  /*clientstyling*/
527
526
  a[2]
528
- ), d(
527
+ ), h(
529
528
  e,
530
529
  "clientstylingurl",
531
530
  /*clientstylingurl*/
532
531
  a[3]
533
- ), d(
532
+ ), h(
534
533
  e,
535
534
  "gamepagemodalurl",
536
535
  /*gamepagemodalurl*/
537
536
  a[7]
538
537
  );
539
538
  },
540
- m(h, _) {
541
- E(h, e, _);
539
+ m(d, _) {
540
+ E(d, e, _);
542
541
  },
543
- p(h, _) {
544
- var N;
542
+ p(d, _) {
545
543
  _[0] & /*endpoint*/
546
- 1 && d(
544
+ 1 && h(
547
545
  e,
548
546
  "endpoint",
549
547
  /*endpoint*/
550
- h[0]
548
+ d[0]
551
549
  ), _[0] & /*sessionID*/
552
- 262144 && d(
550
+ 262144 && h(
553
551
  e,
554
552
  "session",
555
553
  /*sessionID*/
556
- h[18]
554
+ d[18]
557
555
  ), _[0] & /*playerID*/
558
- 524288 && d(
556
+ 524288 && h(
559
557
  e,
560
558
  "userid",
561
559
  /*playerID*/
562
- h[19]
560
+ d[19]
563
561
  ), _[0] & /*showfavorites*/
564
- 256 && d(
562
+ 256 && h(
565
563
  e,
566
564
  "favorites",
567
565
  /*showfavorites*/
568
- h[8]
566
+ d[8]
569
567
  ), _[0] & /*lang*/
570
- 2 && d(
568
+ 2 && h(
571
569
  e,
572
570
  "lang",
573
571
  /*lang*/
574
- h[1]
572
+ d[1]
575
573
  ), _[0] & /*searchArray*/
576
574
  16384 && t !== (t = /*game*/
577
- h[53].thumbnail) && d(e, "gamethumbnail", t), _[0] & /*searchArray*/
575
+ d[53].thumbnail) && h(e, "gamethumbnail", t), _[0] & /*searchArray*/
578
576
  16384 && n !== (n = /*game*/
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*/
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
- h[53].launchUrl) && d(e, "gameLaunchUrl", l), _[0] & /*searchArray*/
581
+ d[53].launchUrl) && h(e, "gameLaunchUrl", l), _[0] & /*searchArray*/
584
582
  16384 && s !== (s = /*game*/
585
- h[53].isNew) && d(e, "gameisnew", s), _[0] & /*searchArray*/
583
+ d[53].isNew) && h(e, "gameisnew", s), _[0] & /*searchArray*/
586
584
  16384 && i !== (i = /*game*/
587
- ((N = h[53].advancedTags) == null ? void 0 : N.length) > 0 && /*addGameTag*/
588
- h[24](
585
+ d[53].advancedTags?.length > 0 && /*addGameTag*/
586
+ d[24](
589
587
  /*game*/
590
- h[53].advancedTags
591
- )) && d(e, "gametag", i), _[0] & /*searchArray*/
588
+ d[53].advancedTags
589
+ )) && h(e, "gametag", i), _[0] & /*searchArray*/
592
590
  16384 && c !== (c = /*game*/
593
- h[53].cellSize) && d(e, "gamecellsize", c), _[0] & /*searchArray*/
591
+ d[53].cellSize) && h(e, "gamecellsize", c), _[0] & /*searchArray*/
594
592
  16384 && m !== (m = /*game*/
595
- h[53].id) && d(e, "gameid", m), _[0] & /*showgamename*/
596
- 64 && d(
593
+ d[53].id) && h(e, "gameid", m), _[0] & /*showgamename*/
594
+ 64 && h(
597
595
  e,
598
596
  "showgamename",
599
597
  /*showgamename*/
600
- h[6]
598
+ d[6]
601
599
  ), _[0] & /*searchArray*/
602
600
  16384 && u !== (u = /*game*/
603
- h[53].hasFunMode) && d(e, "gamefunmode", u), _[0] & /*searchArray*/
601
+ d[53].hasFunMode) && h(e, "gamefunmode", u), _[0] & /*searchArray*/
604
602
  16384 && g !== (g = /*game*/
605
- h[53].isFavorite) && d(e, "gamefavorite", g), _[0] & /*searchArray*/
603
+ d[53].isFavorite) && h(e, "gamefavorite", g), _[0] & /*searchArray*/
606
604
  16384 && k !== (k = /*game*/
607
- h[53].details ? (
605
+ d[53].details ? (
608
606
  /*game*/
609
- h[53].launchUrl
610
- ) : "") && d(e, "livelobbyendpoint", k), _[0] & /*integratedgameframedesktop*/
611
- 16 && d(
607
+ d[53].launchUrl
608
+ ) : "") && h(e, "livelobbyendpoint", k), _[0] & /*integratedgameframedesktop*/
609
+ 16 && h(
612
610
  e,
613
611
  "integratedgameframedesktop",
614
612
  /*integratedgameframedesktop*/
615
- h[4]
613
+ d[4]
616
614
  ), _[0] & /*integratedgameframemobile*/
617
- 32 && d(
615
+ 32 && h(
618
616
  e,
619
617
  "integratedgameframemobile",
620
618
  /*integratedgameframemobile*/
621
- h[5]
619
+ d[5]
622
620
  ), _[0] & /*clientstyling*/
623
- 4 && d(
621
+ 4 && h(
624
622
  e,
625
623
  "clientstyling",
626
624
  /*clientstyling*/
627
- h[2]
625
+ d[2]
628
626
  ), _[0] & /*clientstylingurl*/
629
- 8 && d(
627
+ 8 && h(
630
628
  e,
631
629
  "clientstylingurl",
632
630
  /*clientstylingurl*/
633
- h[3]
631
+ d[3]
634
632
  ), _[0] & /*gamepagemodalurl*/
635
- 128 && d(
633
+ 128 && h(
636
634
  e,
637
635
  "gamepagemodalurl",
638
636
  /*gamepagemodalurl*/
639
- h[7]
637
+ d[7]
640
638
  );
641
639
  },
642
- d(h) {
643
- h && j(e);
640
+ d(d) {
641
+ d && j(e);
644
642
  }
645
643
  };
646
644
  }
647
645
  function ve(a) {
648
- let e, t, n, o = (
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(o), s = x(), i = y("p"), m = q(c), f(n, "class", "SearchMessage"), f(e, "class", u = "ResultsContainerError " + /*notfoundicon*/
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, 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);
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, h) {
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), h[0] & /*$_*/
669
- 1048576 && o !== (o = /*$_*/
670
- k[20]("notFound") + "") && W(l, o), h[0] & /*$_*/
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), h[0] & /*notfoundicon*/
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, o, l, s, i, c, m, u, g, k, h, _, N, P, D, U, A, M, v = (
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"), 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 = /*$_*/
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(P, "class", D = /*cancelbutton*/
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, o), S(n, l), S(n, s), ie(
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, h), v && v.m(n, null), S(e, N), S(e, P), S(e, U), L.m(e, null), a[36](e), A || (M = [
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
- P,
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 && 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)));
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(M);
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, (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 = [];
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(N).then((p) => p.json()).then((p) => {
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((r) => {
792
- de(r, me[r]);
789
+ Object.keys(me).forEach((o) => {
790
+ de(o, me[o]);
793
791
  });
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();
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), o && l && c && I.length < 2) {
798
- t(14, M = []);
799
- let r = localStorage.getItem("searchedGamesWds_casino"), p = [];
800
- r && (p = r.split(","));
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(`${o}/v1/casino/games/${p[R]}`);
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, M = G.map((H) => (H.isFavorite = re(H.id), H))), M.length ? V("searchSuccess", "SearchWidget") : V("searchFail", "SearchWidget");
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 = (r, p) => {
818
- typeof gtag == "function" && gtag("event", r, { context: p });
815
+ }, V = (o, p) => {
816
+ typeof gtag == "function" && gtag("event", o, { context: p });
819
817
  }, Ce = () => {
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) => {
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 = (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) => {
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 r = new URL(`${o}/v1/player/${K}/favorites/`);
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(r.href, p).then((w) => w.json()).then((w) => {
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 = (r) => te.findIndex((p) => p == r) !== -1, je = (r) => {
846
- if ((r == null ? void 0 : r.length) === 0) return "";
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 r.forEach((G, H) => {
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 = r[R].name);
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 = (r) => {
854
- if (v = localStorage.getItem("searchedGamesWds_casino"), v ? v = v.split(",") : v = [], v.indexOf(r) === -1) {
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(r), p = v.join(","), localStorage.setItem("searchedGamesWds_casino", p);
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, M = []), t(16, F = !1), se(F);
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 = (r) => {
860
+ }, se = (o) => {
863
861
  window.postMessage(
864
862
  {
865
- type: r === !0 ? "searchActive" : "searchCancelled",
866
- searchStatus: r
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 r = document.createElement("style");
874
- r.innerHTML = m, B.appendChild(r);
871
+ let o = document.createElement("style");
872
+ o.innerHTML = m, B.appendChild(o);
875
873
  }, xe = () => {
876
- let r = new URL(u), p = document.createElement("style");
877
- fetch(r.href).then((w) => w.text()).then((w) => {
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(r) {
893
- ue[r ? "unshift" : "push"](() => {
894
- L = r, t(15, 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(r) {
899
- ue[r ? "unshift" : "push"](() => {
900
- B = r, t(13, B);
896
+ function Ae(o) {
897
+ ue[o ? "unshift" : "push"](() => {
898
+ B = o, t(13, B);
901
899
  });
902
900
  }
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);
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 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)));
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 && N && Re(), a.$$.dirty[0] & /*session, userid*/
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 && P && Z && Te(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
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
- o,
922
+ r,
925
923
  c,
926
924
  m,
927
925
  u,
928
926
  g,
929
927
  k,
930
- h,
928
+ d,
931
929
  _,
932
- P,
933
- D,
930
+ N,
931
+ M,
934
932
  U,
935
933
  I,
936
934
  b,
937
935
  B,
938
- M,
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
- N,
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 We {
961
+ class it extends Oe {
964
962
  constructor(e) {
965
- super(), Oe(
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
- Ue(it, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
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 default
1083
+ it as C
1086
1084
  };