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